From 00b616a35d547a53bce98c87025f3edbf3720d9f Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Mon, 19 Feb 2024 02:11:29 +0300 Subject: [PATCH] dont log error in server Signed-off-by: Vasiliy Tolstov --- grpc.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/grpc.go b/grpc.go index ad1076a..608be67 100644 --- a/grpc.go +++ b/grpc.go @@ -214,13 +214,6 @@ func (g *Server) handler(srv interface{}, stream grpc.ServerStream) (err error) config.Logger.Error(config.Context, string(debug.Stack())) } err = errors.InternalServerError(g.opts.Name, "panic in %s.%s recovered: %v", serviceName, methodName, r) - } else if err != nil { - g.RLock() - config := g.opts - g.RUnlock() - if config.Logger.V(logger.ErrorLevel) { - config.Logger.Errorf(config.Context, "grpc handler %s.%s got error: %s", serviceName, methodName, err) - } } }()