diff --git a/routstr/discovery.py b/routstr/discovery.py index a2680145..03a82703 100644 --- a/routstr/discovery.py +++ b/routstr/discovery.py @@ -62,7 +62,9 @@ async def query_nostr_relay_for_providers( if data[0] == "EVENT" and data[1] == sub_id: event = data[2] - logger.debug(f"Found provider announcement: {event['id']}") + logger.debug( + f"Found provider announcement: {event['id'][:6]}...{event['id'][-6:]}" + ) events.append(event) elif data[0] == "EOSE" and data[1] == sub_id: logger.debug("Received EOSE message") diff --git a/routstr/nip91.py b/routstr/nip91.py index 3a0a40d2..d14c2c6e 100644 --- a/routstr/nip91.py +++ b/routstr/nip91.py @@ -215,7 +215,7 @@ async def query_nip91_events( continue events_out.append(ev_dict) logger.debug( - f"Found existing NIP-91 event: {ev_dict.get('id', '')}" + f"Found listing event: {ev_dict.get('id', '')[:6]}...{ev_dict.get('id', '')[-6:]}" ) if drained: last_event_ts = time.time()