mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-17 15:56:39 +00:00
use util.InitLog
This commit is contained in:
@@ -8,6 +8,7 @@ import (
|
||||
"runtime"
|
||||
"strings"
|
||||
|
||||
"github.com/netbirdio/netbird/util"
|
||||
log "github.com/sirupsen/logrus"
|
||||
"golang.org/x/crypto/acme"
|
||||
|
||||
@@ -68,12 +69,13 @@ func main() {
|
||||
}
|
||||
|
||||
// Configure logrus.
|
||||
log.SetOutput(os.Stderr)
|
||||
log.SetLevel(log.ErrorLevel)
|
||||
level := "error"
|
||||
if debug {
|
||||
log.SetLevel(log.DebugLevel)
|
||||
level = "debug"
|
||||
}
|
||||
|
||||
util.InitLog(level, "console")
|
||||
|
||||
srv := proxy.Server{
|
||||
Version: Version,
|
||||
ManagementAddress: mgmtAddr,
|
||||
|
||||
Reference in New Issue
Block a user