mirror of
https://github.com/PR0M3TH3AN/SeedPass.git
synced 2025-09-08 23:38:49 +00:00
Fix Nostr publish logging for new SDK
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user