Skip to content

cli: config --p2p-relay-loglevel into tracing filter#555

Open
PoulavBhowmick03 wants to merge 1 commit into
NethermindEth:mainfrom
PoulavBhowmick03:cli/p2p_relay_wiring
Open

cli: config --p2p-relay-loglevel into tracing filter#555
PoulavBhowmick03 wants to merge 1 commit into
NethermindEth:mainfrom
PoulavBhowmick03:cli/p2p_relay_wiring

Conversation

@PoulavBhowmick03

Copy link
Copy Markdown
Contributor

Closes #483

Copilot AI review requested due to automatic review settings July 21, 2026 06:26

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Wires the relay command’s --p2p-relay-loglevel flag into the tracing EnvFilter so operators can reduce libp2p relay noise (e.g., suppress benign libp2p_relay warnings) without changing Pluto’s overall --log-level.

Changes:

  • Add relay_filter(base, relay_level) helper to compose libp2p_relay=<level> into the tracing filter string.
  • Use the composed filter when building the relay’s console tracing config.
  • Add a small unit test covering relay_filter behavior.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +101 to +105
let p2p_relay = self.relay.p2p_relay_log_level;

let log_config = build_console_tracing_config(
relay_filter(self.log.level.as_str(), &p2p_relay),
&self.log.color,
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

Successfully merging this pull request may close these issues.

relay: wire --p2p-relay-loglevel into the tracing filter (quiet benign libp2p relay handler warnings)

2 participants