mirror of
https://github.com/netbirdio/netbird.git
synced 2024-12-15 11:21:04 +01:00
16 lines
214 B
Go
16 lines
214 B
Go
|
package iface
|
||
|
|
||
|
import (
|
||
|
"os"
|
||
|
|
||
|
"golang.zx2c4.com/wireguard/device"
|
||
|
)
|
||
|
|
||
|
func wgLogLevel() int {
|
||
|
if os.Getenv("NB_WG_DEBUG") == "true" {
|
||
|
return device.LogLevelVerbose
|
||
|
} else {
|
||
|
return device.LogLevelSilent
|
||
|
}
|
||
|
}
|