mirror of
https://github.com/asmogo/nws.git
synced 2025-01-18 18:11:33 +00:00
Change log level from Info to Debug for read/write operations
Updated logging statements for reading and writing operations in conn.go from Info to Debug level. This will reduce noise in the logs and help focus on more crucial log messages during standard operation while preserving these details for debugging purposes.
This commit is contained in:
parent
aaac605f17
commit
95bb043dcb
@ -137,7 +137,7 @@ func (nc *NostrConnection) handleNostrRead(b []byte, n int) (int, error) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return 0, err
|
return 0, err
|
||||||
}
|
}
|
||||||
slog.Info("reading", slog.String("event", event.ID), slog.String("content", base64.StdEncoding.EncodeToString(message.Data)))
|
slog.Debug("reading", slog.String("event", event.ID), slog.String("content", base64.StdEncoding.EncodeToString(message.Data)))
|
||||||
n = copy(b, message.Data)
|
n = copy(b, message.Data)
|
||||||
return n, nil
|
return n, nil
|
||||||
case <-nc.ctx.Done():
|
case <-nc.ctx.Done():
|
||||||
@ -221,7 +221,7 @@ func (nc *NostrConnection) handleNostrWrite(b []byte) (int, error) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
nc.sentBytes = append(nc.sentBytes, b)
|
nc.sentBytes = append(nc.sentBytes, b)
|
||||||
slog.Info("writing", slog.String("event", ev.ID), slog.String("content", base64.StdEncoding.EncodeToString(b)))
|
slog.Debug("writing", slog.String("event", ev.ID), slog.String("content", base64.StdEncoding.EncodeToString(b)))
|
||||||
return len(b), nil
|
return len(b), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user