上传错误日志优化

This commit is contained in:
liwei1dao 2022-12-16 09:51:58 +08:00
parent 5abc58590e
commit b1be9966dc
2 changed files with 2 additions and 3 deletions

View File

@ -4,7 +4,6 @@ import (
"context" "context"
"go_dreamfactory/comm" "go_dreamfactory/comm"
"go_dreamfactory/lego/core" "go_dreamfactory/lego/core"
"go_dreamfactory/lego/sys/log"
"go_dreamfactory/lego/sys/redis" "go_dreamfactory/lego/sys/redis"
"go_dreamfactory/modules" "go_dreamfactory/modules"
"go_dreamfactory/pb" "go_dreamfactory/pb"
@ -48,7 +47,7 @@ func (this *ModelFriend) GetFriend(uid string) *pb.DBFriend {
return nil return nil
} }
} }
log.Error("未获得好友数据", log.Fields{"uid": uid}) // log.Error("未获得好友数据", log.Fields{"uid": uid})
} }
} else { } else {
friend := &pb.DBFriend{} friend := &pb.DBFriend{}

View File

@ -122,7 +122,7 @@ func (this *Friend) RpcFriendDB(ctx context.Context, req *pb.RPCGeneralReqA1, re
return nil return nil
} }
} else { } else {
log.Error("未获得好友数据", log.Fields{"uid": req.Param1, "err": err}) // log.Error("未获得好友数据", log.Fields{"uid": req.Param1, "err": err})
} }
} }
*reply = *friend *reply = *friend