优化错误日志
This commit is contained in:
parent
31282c5e18
commit
cd13fbc6bf
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user