Add logging option for wg device (#2271)

This commit is contained in:
Zoltan Papp
2024-07-15 14:45:18 +02:00
committed by GitHub
parent d5ba2ef6ec
commit bc09348f5a
7 changed files with 22 additions and 6 deletions

View File

@@ -57,7 +57,7 @@ func (t *tunUSPDevice) Create() (wgConfigurer, error) {
t.device = device.NewDevice(
t.wrapper,
t.iceBind,
device.NewLogger(device.LogLevelSilent, "[netbird] "),
device.NewLogger(wgLogLevel(), "[netbird] "),
)
err = t.assignAddr()