noop: tweak a few log messages

in-memory-cache
Ryan Barrett 2024-10-11 15:24:25 -07:00
rodzic f53179d339
commit 93c034de3b
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 6BE31FDF4776E9D4
2 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -619,7 +619,7 @@ class ATProto(User, Protocol):
action = Action.CREATE action = Action.CREATE
rkey = next_tid() 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: try:
repo.apply_writes([Write(action=action, collection=type, rkey=rkey, repo.apply_writes([Write(action=action, collection=type, rkey=rkey,
record=record)]) record=record)])

Wyświetl plik

@ -1312,7 +1312,7 @@ class Object(StringIdModel):
translated = translate_fn(id=orig, from_=proto, to=proto) translated = translate_fn(id=orig, from_=proto, to=proto)
if translated and translated != orig: 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 replaced = True
if isinstance(val, dict): if isinstance(val, dict):
val['id'] = translated val['id'] = translated