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 }