From 2324196eed6993c563bb242f116a1460a2ececee Mon Sep 17 00:00:00 2001 From: Hakan Sariman Date: Fri, 28 Mar 2025 00:49:41 +0800 Subject: [PATCH] client: simplify gRPC logger initialization by removing console output handling --- util/log.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/util/log.go b/util/log.go index 35cf481f7..6eaa003e7 100644 --- a/util/log.go +++ b/util/log.go @@ -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 }