增加接口报错日志
This commit is contained in:
parent
1ed7fa71b9
commit
bd36f98954
@ -219,6 +219,10 @@ func HandleClientReq(args []interface{}) {
|
||||
err := RunNetProcessByKey(m.GetFunc(), []interface{}{a, buf})
|
||||
if err != nil {
|
||||
log.Error("uid : %d, func : %s, err : %s", p.(*Player).M_DwUin, m.GetFunc(), err)
|
||||
p.(*Player).TeLog("func_exec_error", map[string]interface{}{
|
||||
"method_name": m.GetFunc(),
|
||||
"error_info": err.Error(),
|
||||
})
|
||||
p.(*Player).Recover(backup) //还原Player的数据
|
||||
return
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user