[GH-ISSUE #1764] netbird even log higher level when not set or set to info #3290

Closed
opened 2026-08-05 00:51:39 -04:00 by saavagebueno · 3 comments
Owner

Originally created by @lfarkas on GitHub (Mar 28, 2024).
Original GitHub issue: https://github.com/netbirdio/netbird/issues/1764

in home assistant we run it as :
netbird up --foreground-mode --config /config/netbird/config.json --log-file console --setup-key xxxxx --hostname yyyy
but the log still full with such lines:

time=2024-03-28T12:06:35.985+01:00 level=DEBUG msg="Skipping handshake due to missing endpoint" pid="WozkqsNH0R2gGzIyEFqjWuLvcfuI+wrTl8Q/wd6AXmg="
time=2024-03-28T12:06:35.988+01:00 level=DEBUG msg="Added peer" pid="WozkqsNH0R2gGzIyEFqjWuLvcfuI+wrTl8Q/wd6AXmg="
2024-03-28T12:06:35+01:00 INFO client/internal/peer/conn.go:375: connected to peer hCDjKQBW9TBwsZigTRXxvVzpAYE+ZqDHBol4sOSUMl0=, endpoint address: 185.199.30.141:43358
time=2024-03-28T12:06:36.027+01:00 level=DEBUG msg="Skipping handshake due to missing endpoint" pid="y9muQSHT3YHV0QugCUP+oH6TevaeJiN0UrlQ22Cd9vk="
time=2024-03-28T12:06:36.029+01:00 level=DEBUG msg="Added peer" pid="y9muQSHT3YHV0QugCUP+oH6TevaeJiN0UrlQ22Cd9vk="
2024-03-28T12:06:36+01:00 INFO client/internal/peer/conn.go:375: connected to peer gsrpCbJwc8lkmNV783rxIHpyj+zZIhy/rFj5HsfVuBY=, endpoint address: 10.4.4.1:51820
time=2024-03-28T12:06:36.032+01:00 level=DEBUG msg="Handling message" type=InitHello
time=2024-03-28T12:06:36.046+01:00 level=DEBUG msg="Skipping handshake due to missing endpoint" pid="4gwHVFRbiUK4dEKIyjDxvnmgdCmMfDR0MWze2fzuY3U="

even if i set loglevel with:
netbird up --foreground-mode --config /config/netbird/config.json --log-file console --setup-key xxxxx --hostname yyyy --log-level info
i still got these DEBUG lines.

IMHO this is a bug and not a feature.

Originally created by @lfarkas on GitHub (Mar 28, 2024). Original GitHub issue: https://github.com/netbirdio/netbird/issues/1764 in home assistant we run it as : `netbird up --foreground-mode --config /config/netbird/config.json --log-file console --setup-key xxxxx --hostname yyyy` but the log still full with such lines: ``` time=2024-03-28T12:06:35.985+01:00 level=DEBUG msg="Skipping handshake due to missing endpoint" pid="WozkqsNH0R2gGzIyEFqjWuLvcfuI+wrTl8Q/wd6AXmg=" time=2024-03-28T12:06:35.988+01:00 level=DEBUG msg="Added peer" pid="WozkqsNH0R2gGzIyEFqjWuLvcfuI+wrTl8Q/wd6AXmg=" 2024-03-28T12:06:35+01:00 INFO client/internal/peer/conn.go:375: connected to peer hCDjKQBW9TBwsZigTRXxvVzpAYE+ZqDHBol4sOSUMl0=, endpoint address: 185.199.30.141:43358 time=2024-03-28T12:06:36.027+01:00 level=DEBUG msg="Skipping handshake due to missing endpoint" pid="y9muQSHT3YHV0QugCUP+oH6TevaeJiN0UrlQ22Cd9vk=" time=2024-03-28T12:06:36.029+01:00 level=DEBUG msg="Added peer" pid="y9muQSHT3YHV0QugCUP+oH6TevaeJiN0UrlQ22Cd9vk=" 2024-03-28T12:06:36+01:00 INFO client/internal/peer/conn.go:375: connected to peer gsrpCbJwc8lkmNV783rxIHpyj+zZIhy/rFj5HsfVuBY=, endpoint address: 10.4.4.1:51820 time=2024-03-28T12:06:36.032+01:00 level=DEBUG msg="Handling message" type=InitHello time=2024-03-28T12:06:36.046+01:00 level=DEBUG msg="Skipping handshake due to missing endpoint" pid="4gwHVFRbiUK4dEKIyjDxvnmgdCmMfDR0MWze2fzuY3U=" ``` even if i set loglevel with: `netbird up --foreground-mode --config /config/netbird/config.json --log-file console --setup-key xxxxx --hostname yyyy --log-level info` i still got these DEBUG lines. IMHO this is a bug and not a feature.
saavagebueno added the bug label 2026-08-05 00:51:39 -04:00
Author
Owner

@pascal-fischer commented on GitHub (Mar 28, 2024):

Hi @lfarkas, you are absolutely right, this is a bug. Those debug logs are sent from the rosenpass library which is using a different logging framework, that we are not configuring properly. If you check https://github.com/netbirdio/netbird/blob/4fff93a1f228fe15a802b5a0862aa1180f912c5d/client/internal/rosenpass/manager.go#L103 we have a hardcoded debug log to standardout. This needs to be fixed and preferably optional to enable/disable those logs completely independent from the main netbird logs

<!-- gh-comment-id:2025043166 --> @pascal-fischer commented on GitHub (Mar 28, 2024): Hi @lfarkas, you are absolutely right, this is a bug. Those debug logs are sent from the rosenpass library which is using a different logging framework, that we are not configuring properly. If you check [https://github.com/netbirdio/netbird/blob/4fff93a1f228fe15a802b5a0862aa1180f912c5d/client/internal/rosenpass/manager.go#L103](https://github.com/netbirdio/netbird/blob/4fff93a1f228fe15a802b5a0862aa1180f912c5d/client/internal/rosenpass/manager.go#L103) we have a hardcoded debug log to standardout. This needs to be fixed and preferably optional to enable/disable those logs completely independent from the main netbird logs
Author
Owner

@nazarewk commented on GitHub (Apr 23, 2025):

@lfarkas is this still an issue in recent NetBird versions or was it addressed already?

<!-- gh-comment-id:2823650799 --> @nazarewk commented on GitHub (Apr 23, 2025): @lfarkas is this still an issue in recent NetBird versions or was it addressed already?
Author
Owner

@lfarkas commented on GitHub (Apr 23, 2025):

not

<!-- gh-comment-id:2823833731 --> @lfarkas commented on GitHub (Apr 23, 2025): not
Sign in to join this conversation.
No Label bug
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#3290