6
1
mirror of https://git.mills.io/saltyim/saltyim.git synced 2024-06-20 05:48:25 +00:00

Use Debug logging level for logging debug logs

This commit is contained in:
James Mills 2022-03-22 01:26:40 +10:00
parent a053515d0e
commit 9036019c54

@ -63,9 +63,9 @@ func NewClient(me Addr, identity, endpoint string) (*Client, error) {
return nil, fmt.Errorf("unable to find your user addressn in %s", identity)
}
log.Infof("Using identity %s with public key %s", identity, key)
log.Infof("Salty Addr is %s", me)
log.Infof("Endpoint is %s", endpoint)
log.Debugf("Using identity %s with public key %s", identity, key)
log.Debugf("Salty Addr is %s", me)
log.Debugf("Endpoint is %s", endpoint)
return &Client{
key: key,
@ -139,7 +139,7 @@ func (cli *Client) Read(ctx context.Context, endpoint, prehook, posthook string)
s := bus.Subscribe(inbox, cli.handleMessage(prehook, posthook, msgs))
s.Start()
log.Infof("Connected to %s/%s", uri, inbox)
log.Debugf("Connected to %s/%s", uri, inbox)
go func() {
<-ctx.Done()