[PR #4283] [client] Shorten peer public key in connection logs #4171

Open
opened 2025-11-20 08:07:52 -05:00 by saavagebueno · 0 comments
Owner

Original Pull Request: https://github.com/netbirdio/netbird/pull/4283

State: closed
Merged: No


Describe your changes

Shorter pub keys in logs:

2025-08-04T22:26:06Z INFO 285 [peer: 5ylZjz6] client/internal/peer/conn.go:478: created new wgProxy for relay connection: 127.0.0.1:1
2025-08-04T22:26:06Z INFO 64 [peer: 5ylZjz6] client/internal/peer/wg_watcher.go:88: WireGuard watcher started
2025-08-04T22:26:07Z INFO 285 [peer: 5ylZjz6] client/internal/peer/conn.go:509: start to communicate with peer via relay
2025-08-04T22:26:07Z INFO 453 [peer: 5ylZjz6] client/internal/peer/conn.go:349: set ICE to active connection
2025-08-04T22:26:07Z INFO 64 [peer: 5ylZjz6] client/internal/peer/wg_watcher.go:112: WireGuard watcher stopped
2025-08-04T22:26:09Z INFO 294 [peer: 5ylZjz6] client/internal/peer/guard/guard.go:74: start reconnect loop...

Stack

Checklist

  • Is it a bug fix
  • Is a typo/documentation fix
  • Is a feature enhancement
  • It is a refactor
  • Created tests that fail without the change (if possible)
  • Extended the README / documentation, if necessary

By submitting this pull request, you confirm that you have read and agree to the terms of the Contributor License Agreement.

**Original Pull Request:** https://github.com/netbirdio/netbird/pull/4283 **State:** closed **Merged:** No --- ## Describe your changes Shorter pub keys in logs: ``` 2025-08-04T22:26:06Z INFO 285 [peer: 5ylZjz6] client/internal/peer/conn.go:478: created new wgProxy for relay connection: 127.0.0.1:1 2025-08-04T22:26:06Z INFO 64 [peer: 5ylZjz6] client/internal/peer/wg_watcher.go:88: WireGuard watcher started 2025-08-04T22:26:07Z INFO 285 [peer: 5ylZjz6] client/internal/peer/conn.go:509: start to communicate with peer via relay 2025-08-04T22:26:07Z INFO 453 [peer: 5ylZjz6] client/internal/peer/conn.go:349: set ICE to active connection 2025-08-04T22:26:07Z INFO 64 [peer: 5ylZjz6] client/internal/peer/wg_watcher.go:112: WireGuard watcher stopped 2025-08-04T22:26:09Z INFO 294 [peer: 5ylZjz6] client/internal/peer/guard/guard.go:74: start reconnect loop... ``` ## Issue ticket number and link ## Stack <!-- branch-stack --> ### Checklist - [ ] Is it a bug fix - [ ] Is a typo/documentation fix - [ ] Is a feature enhancement - [x] It is a refactor - [ ] Created tests that fail without the change (if possible) - [ ] Extended the README / documentation, if necessary > By submitting this pull request, you confirm that you have read and agree to the terms of the [Contributor License Agreement](https://github.com/netbirdio/netbird/blob/main/CONTRIBUTOR_LICENSE_AGREEMENT.md).
saavagebueno added the pull-request label 2025-11-20 08:07:52 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#4171