优化日志输出代码
This commit is contained in:
parent
0f320cb41b
commit
656fb4226b
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user