From 656fb4226b241053c70f12f159ce4f0cec29369b Mon Sep 17 00:00:00 2001 From: liwei1dao Date: Wed, 28 Sep 2022 21:03:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=97=A5=E5=BF=97=E8=BE=93?= =?UTF-8?q?=E5=87=BA=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/gateway/agent.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/gateway/agent.go b/modules/gateway/agent.go index 916e05928..7ca33804b 100644 --- a/modules/gateway/agent.go +++ b/modules/gateway/agent.go @@ -270,8 +270,8 @@ func (this *Agent) messageDistribution(msg *pb.UserMessage) (err error) { if err = this.gateway.Service().RpcCall(context.Background(), servicePath, string(comm.Rpc_GatewayRoute), req, reply); err != nil { this.gateway.Error("[UserResponse]", log.Field{Key: "uid", Value: this.uId}, - log.Field{Key: "req", Value: req}, - log.Field{Key: "err", Value: err}, + log.Field{Key: "req", Value: req.String()}, + log.Field{Key: "err", Value: err.Error()}, ) return } @@ -280,7 +280,7 @@ func (this *Agent) messageDistribution(msg *pb.UserMessage) (err error) { this.gateway.Error("[UserResponse]", log.Field{Key: "uid", Value: this.uId}, log.Field{Key: "req", Value: req.String()}, - log.Field{Key: "err", Value: err}, + log.Field{Key: "err", Value: err.Error()}, ) return }