Fix Nostr publish logging for new SDK

This commit is contained in:
thePR0M3TH3AN
2025-06-30 23:56:56 -04:00
parent 4d1b1207e0
commit c2fc2e26e8
2 changed files with 20 additions and 3 deletions

View File

@@ -100,8 +100,13 @@ class NostrClient:
)
# Send the event using the client
event_id = self.publish_event(event)
logger.info(f"Successfully published event with ID: {event_id.to_hex()}")
event_output = self.publish_event(event)
event_id_hex = (
event_output.id.to_hex()
if hasattr(event_output, "id")
else str(event_output)
)
logger.info(f"Successfully published event with ID: {event_id_hex}")
return True
except Exception as e: