mirror of
https://github.com/netbirdio/netbird.git
synced 2025-10-26 11:17:32 +00:00
client: simplify gRPC logger initialization by removing console output handling
This commit is contained in:
parent
274f50e63e
commit
2324196eed
@ -50,12 +50,8 @@ func InitLog(logLevel string, logPath string) error {
|
||||
}
|
||||
log.SetLevel(level)
|
||||
|
||||
if logPath == "console" {
|
||||
grpclog.SetLoggerV2(grpclog.NewLoggerV2(io.Discard, io.Discard, io.Discard))
|
||||
} else {
|
||||
logOut := log.StandardLogger().Out
|
||||
grpclog.SetLoggerV2(grpclog.NewLoggerV2(logOut, logOut, logOut))
|
||||
}
|
||||
logOut := log.StandardLogger().Out
|
||||
grpclog.SetLoggerV2(grpclog.NewLoggerV2(logOut, logOut, logOut))
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user