reth icon indicating copy to clipboard operation
reth copied to clipboard

Improve logging

Open 3alpha opened this issue 1 year ago • 1 comments

Describe the feature

This is probably matter of opinion, but p2p logging seems too noisy to me. For every peer connection there are two logs messages emitted, which seems much. Example:

2023-06-22T12:50:58.720451Z  INFO net: Session established remote_addr=IP:PORT client_version= peer_id=0xa7e6371700107bec6cfd7b31f06c3a938a284439a74c8f32afeb10368896f6532c12e734c66943a106168606b3f671f439be4ad129da816cd71cc935bbb403c5 total_active=80
2023-06-22T12:50:58.720509Z  INFO reth::cli: Peer connected connected_peers=80 peer_id=0xa7e6…03c5 best_block=0xd4e5…8fa3

Maybe it would be wise to introduce some granularity so that different log levels can be specified for different modules.

Additional context

No response

3alpha avatar Jun 22 '23 13:06 3alpha