explain how to turn off logs.

This commit is contained in:
fiatjaf
2024-03-01 15:54:11 -03:00
parent f75501e7ef
commit c5f6692f74

View File

@@ -110,6 +110,16 @@ for _, url := range []string{"wss://nostr.zebedee.cloud", "wss://nostr-pub.wello
}
```
### Logging
To get more logs from the interaction with relays printed to STDOUT you can compile or run your program with `-tags debug`.
To remove the info logs completely, replace `nostr.InfoLogger` with something that prints nothing, like
``` go
nostr.InfoLogger = log.New(io.Discard, "", 0)
```
### Example script
```