优化日志
This commit is contained in:
parent
b88272d00d
commit
ff0d901e2a
@ -243,12 +243,16 @@ func HandleClientReq(args []interface{}) {
|
||||
return
|
||||
}
|
||||
detailMsg, err := UnmarshalProtoMessageByName(m.GetFunc(), buf)
|
||||
str, _ := protojson.Marshal(detailMsg)
|
||||
str := ""
|
||||
if conf.Server.GameName == "pet_home" || conf.Server.GameName == "merge_pet_sdk" {
|
||||
strbuf, _ := protojson.Marshal(detailMsg)
|
||||
str = string(strbuf)
|
||||
}
|
||||
p.(*Player).ProcessTrigger()
|
||||
p.(*Player).TeLog("func_exec_time", map[string]interface{}{
|
||||
"method_name": m.GetFunc(),
|
||||
"exec_time": fmt.Sprintf("%v", time.Since(start)),
|
||||
"proto": string(str),
|
||||
"proto": str,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user