Skip to content

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

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

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

Conversation

@cvl

@cvl cvl commented May 22, 2026

Copy link
Copy Markdown
Contributor

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.
@stale

stale Bot commented Jun 6, 2026

Copy link
Copy Markdown

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale Bot added the stale label Jun 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant