Skip to content

fix: WireGuard log level respects --log-level flag#6194

Open
cvl wants to merge 1 commit into
mysteriumnetwork:masterfrom
cvl:fix/wireguard-log-level
Open

fix: WireGuard log level respects --log-level flag#6194
cvl wants to merge 1 commit into
mysteriumnetwork:masterfrom
cvl:fix/wireguard-log-level

Conversation

@cvl
Copy link
Copy Markdown
Contributor

@cvl cvl commented May 22, 2026

WireGuard device logger was hardcoded to LogLevelVerbose, producing excessive DEBUG output (peer handshakes, keepalives) regardless of the node's --log-level setting.

Added logconfig.WireGuardLogLevel() that maps zerolog levels:
trace/debug → LogLevelVerbose (handshakes, keepalives)
info/warn → LogLevelError (errors only)
error+ → LogLevelSilent

All 5 device creation sites now call logconfig.WireGuardLogLevel() instead of hardcoding a level.

WireGuard device logger was hardcoded to LogLevelVerbose, producing
excessive DEBUG output (peer handshakes, keepalives) regardless of
the node's --log-level setting.

Added logconfig.WireGuardLogLevel() that maps zerolog levels:
  trace/debug → LogLevelVerbose (handshakes, keepalives)
  info/warn   → LogLevelError (errors only)
  error+      → LogLevelSilent

All 5 device creation sites now call logconfig.WireGuardLogLevel()
instead of hardcoding a level.
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.

1 participant