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

libp2p: Enhance logging targets for granular control #7494

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

lexnv
Copy link
Contributor

@lexnv lexnv commented Feb 6, 2025

This PR modifies the libp2p networking-specific log targets for granular control (e.g., just enabling trace for req-resp).

Previously, all logs were outputted to sub-libp2p target, flooding the log messages on busy validators.

Changes

  • Discover: sub-libp2p::discovery
  • Notification/behaviour: sub-libp2p::notification::behaviour
  • Notification/handler: sub-libp2p::notification::handler
  • Notification/service: sub-libp2p::notification::service
  • Notification/upgrade: sub-libp2p::notification::upgrade
  • Request response: sub-libp2p::request-response

cc @paritytech/networking

lexnv added 7 commits February 6, 2025 11:16
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
@lexnv lexnv added the T0-node This PR/Issue is related to the topic “node”. label Feb 6, 2025
@lexnv lexnv self-assigned this Feb 6, 2025
lexnv and others added 2 commits February 6, 2025 11:36
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T0-node This PR/Issue is related to the topic “node”.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant