Skip to content

Commit

Permalink
Merge pull request #27 from asmogo/update_log
Browse files Browse the repository at this point in the history
Change log level from Info to Debug for read/write operations
  • Loading branch information
asmogo authored Aug 2, 2024
2 parents aaac605 + 95bb043 commit d0ae8ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions netstr/conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ func (nc *NostrConnection) handleNostrRead(b []byte, n int) (int, error) {
if err != nil {
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)
return n, nil
case <-nc.ctx.Done():
Expand Down Expand Up @@ -221,7 +221,7 @@ func (nc *NostrConnection) handleNostrWrite(b []byte) (int, error) {
}
}
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
}

Expand Down

0 comments on commit d0ae8ac

Please sign in to comment.