print the event before sending it to relays.

This commit is contained in:
fiatjaf 2023-05-23 23:31:31 -03:00
parent 88acf8ccda
commit 9d4f1ec852
No known key found for this signature in database
GPG Key ID: BAD43C4BE5C1A3A1

View File

@ -117,6 +117,7 @@ standalone:
relays := c.Args().Slice() relays := c.Args().Slice()
if len(relays) > 0 { if len(relays) > 0 {
fmt.Println(evt.String())
for _, url := range relays { for _, url := range relays {
fmt.Fprintf(os.Stderr, "publishing to %s... ", url) fmt.Fprintf(os.Stderr, "publishing to %s... ", url)
if relay, err := nostr.RelayConnect(c.Context, url); err != nil { if relay, err := nostr.RelayConnect(c.Context, url); err != nil {