mirror of
https://github.com/netbirdio/netbird.git
synced 2024-12-14 19:00:50 +01:00
fd67892cb4
Refactor the flat code structure
16 lines
215 B
Go
16 lines
215 B
Go
package device
|
|
|
|
import (
|
|
"os"
|
|
|
|
"golang.zx2c4.com/wireguard/device"
|
|
)
|
|
|
|
func wgLogLevel() int {
|
|
if os.Getenv("NB_WG_DEBUG") == "true" {
|
|
return device.LogLevelVerbose
|
|
} else {
|
|
return device.LogLevelSilent
|
|
}
|
|
}
|