Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

default log is very noisy with useless entries #4824

Closed
attila-lendvai opened this issue Sep 14, 2024 · 0 comments
Closed

default log is very noisy with useless entries #4824

attila-lendvai opened this issue Sep 14, 2024 · 0 comments

Comments

@attila-lendvai
Copy link
Collaborator

attila-lendvai commented Sep 14, 2024

Summary

default log is noisy with entries that are not generally useful.

meanwhile, actually useful things are not logged at info level (e.g. API access only logs at the end, not at the beginning).

Motivation

i'd like the default log to be more useful to gain insight into what bee is doing.

also produce less log to the disks on info level.

Implementation

  • lower all these logs to debug level:
2024-09-11 12:01:07 "time"="2024-09-11 12:01:07.826629" "level"="warning" "logger"="node/kademlia" "msg"="peer not reachable when attempting to connect"
2024-09-11 12:01:07 "time"="2024-09-11 12:01:07.976037" "level"="info" "logger"="node/kademlia" "msg"="disconnected peer" "peer_address"="9b62828f12c28bd2fb2a>
2024-09-11 12:01:10 "time"="2024-09-11 12:01:10.129448" "level"="info" "logger"="node/kademlia" "msg"="connected to peer" "peer_address"="9d0940385aacf3948791>
  • add a timer that periodically logs the connection stats at info level (this is beyond my current golang abilities).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants