use log() function instead of fmt.Fprintf(os.Stderr) in some places.

This commit is contained in:
fiatjaf
2024-09-22 19:04:21 -03:00
parent 3215726417
commit 43fe41df5d
4 changed files with 8 additions and 10 deletions

View File

@@ -68,7 +68,7 @@ func gatherSecretKeyOrBunkerFromArguments(ctx context.Context, c *cli.Command) (
clientKey = nostr.GeneratePrivateKey()
}
bunker, err := nip46.ConnectBunker(ctx, clientKey, bunkerURL, nil, func(s string) {
fmt.Fprintf(color.Error, color.CyanString("[nip46]: open the following URL: %s"), s)
log(color.CyanString("[nip46]: open the following URL: %s"), s)
})
return "", bunker, err
}