From f33595f72a62bf0ceb5706ca50054f4f9e55ba29 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 154426d..f4f2299 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) - } } }()