Open jm-clius opened 2 years ago
I think that it would be interesting to define a set of rules to choose the right logging level. Defining these rules will help us to have consistent logging. I think this should be part of the acceptance criteria for this issue.
For example, for warn
level what makes sense for me is (from: https://github.com/status-im/nwaku/pull/991#issuecomment-1145902891):
For example, I would set it to warn level in the case that reaching that state was non-critical and uncommon but could affect the app stability.
Let's not forget that proper (and well-thought) logging is a basic tool for debugging in production environments 😁
Also investigate, first reported in https://github.com/status-im/nwaku/issues/703
failed to store peers topics="wakupeers" tid=1 file=peer_manager.nim:44 err="failed to encode: Failed to encode public key"
Background
Most nwaku nodes run with
DEBUG
level logs.Although this is a useful (and necessary) log level for debugging purposes, the logs are very noisy even under stable operation, making it difficult to find and investigate unusual conditions
Very frequent logs should either be lowered to
TRACE
level or filtered.Examples of frequent logs
These can be individually investigated and filtered/suppressed:
On systems with RLN enabled: