kopia lustrzana https://github.com/snarfed/bridgy-fed
noop: tweak a few log messages
rodzic
f53179d339
commit
93c034de3b
|
|
@ -619,7 +619,7 @@ class ATProto(User, Protocol):
|
|||
action = Action.CREATE
|
||||
rkey = next_tid()
|
||||
|
||||
logger.info(f'Storing ATProto {action} {type} {rkey} {dag_json.encode(record)}')
|
||||
logger.info(f'Storing ATProto {action} {type} {rkey} {dag_json.encode(record, dialect="atproto")}')
|
||||
try:
|
||||
repo.apply_writes([Write(action=action, collection=type, rkey=rkey,
|
||||
record=record)])
|
||||
|
|
|
|||
|
|
@ -1312,7 +1312,7 @@ class Object(StringIdModel):
|
|||
|
||||
translated = translate_fn(id=orig, from_=proto, to=proto)
|
||||
if translated and translated != orig:
|
||||
logger.info(f'Normalized {proto.LABEL} id {orig} to {translated}')
|
||||
# logger.debug(f'Normalized {proto.LABEL} id {orig} to {translated}')
|
||||
replaced = True
|
||||
if isinstance(val, dict):
|
||||
val['id'] = translated
|
||||
|
|
|
|||
Ładowanie…
Reference in New Issue