Skip to content

Commit

Permalink
log message tweaks for receive, send
Browse files Browse the repository at this point in the history
  • Loading branch information
snarfed committed Jul 19, 2024
1 parent b3b825f commit f5bcb98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,7 @@ def receive(from_cls, obj, authed_as=None, internal=False):
id = obj.as1.get('id')
obj.key = ndb.Key(Object, id)

logger.info(f'From {from_cls.LABEL}: {obj.type} {id} AS1: {json_dumps(obj.as1, indent=2)}')
logger.info(f'Receiving {from_cls.LABEL} {obj.type} {id} AS1: {json_dumps(obj.as1, indent=2)}')
if not id:
error('No id provided')
elif from_cls.is_blocklisted(id, allow_internal=internal):
Expand Down Expand Up @@ -1656,7 +1656,7 @@ def send_task():
if form.get('orig_obj') else None)

# send
logger.info(f'Sending {obj.key.id()} AS1: {json_dumps(obj.as1, indent=2)}')
logger.info(f'Sending {protocol} {obj.type} {obj.key.id()} AS1: {json_dumps(obj.as1, indent=2)}')
sent = None
try:
sent = PROTOCOLS[protocol].send(obj, url, from_user=user, orig_obj=orig_obj)
Expand Down

0 comments on commit f5bcb98

Please sign in to comment.