优化错误日志

This commit is contained in:
liwei1dao 2022-12-15 15:33:05 +08:00
parent 31282c5e18
commit cd13fbc6bf

View File

@ -235,7 +235,7 @@ func (this *User) QueryAttributeValue(uid string, attr string) (value int64) {
func (this *User) change(session comm.IUserSession, attr string, add int32) (change *pb.UserResChangedPush, code pb.ErrorCode) { func (this *User) change(session comm.IUserSession, attr string, add int32) (change *pb.UserResChangedPush, code pb.ErrorCode) {
if add == 0 { if add == 0 {
log.Error("attr no changed", log.Fields{"uid": session.GetUserId(), "attr": attr, "add": add}) log.Warn("attr no changed", log.Fields{"uid": session.GetUserId(), "attr": attr, "add": add})
// code = pb.ErrorCode_ReqParameterError // code = pb.ErrorCode_ReqParameterError
return return
} }