From 4c70119e1bed9ef84788a766d014cfb4bbc5d0d3 Mon Sep 17 00:00:00 2001 From: hello2t Date: Fri, 1 Feb 2019 15:11:35 +0800 Subject: [PATCH] fix field msg error --- logging/zap/payload_interceptors.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logging/zap/payload_interceptors.go b/logging/zap/payload_interceptors.go index 293cdf9a6..d5ebf44a7 100644 --- a/logging/zap/payload_interceptors.go +++ b/logging/zap/payload_interceptors.go @@ -33,7 +33,7 @@ func PayloadUnaryServerInterceptor(logger *zap.Logger, decider grpc_logging.Serv logProtoMessageAsJson(logEntry, req, "grpc.request.content", "server request payload logged as grpc.request.content field") resp, err := handler(ctx, req) if err == nil { - logProtoMessageAsJson(logEntry, resp, "grpc.response.content", "server response payload logged as grpc.request.content field") + logProtoMessageAsJson(logEntry, resp, "grpc.response.content", "server response payload logged as grpc.response.content field") } return resp, err }