mirror of
https://github.com/netbirdio/netbird.git
synced 2024-12-02 04:53:51 +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
|
|
}
|
|
}
|