日志优化
This commit is contained in:
parent
20622df1da
commit
4f5adaab9b
@ -811,6 +811,10 @@ func (p *Player) TeLog(Type string, Param map[string]interface{}) {
|
|||||||
EventName: Type,
|
EventName: Type,
|
||||||
Param: Param,
|
Param: Param,
|
||||||
})
|
})
|
||||||
|
agent := p.GetAgent()
|
||||||
|
if agent != nil {
|
||||||
|
Param["Ip"] = agent.RemoteAddr().String()
|
||||||
|
}
|
||||||
telog.Te.Track(p.GetPlayerBaseMod().GetName(), p.GetPlayerBaseMod().GetName(), Type, Param)
|
telog.Te.Track(p.GetPlayerBaseMod().GetName(), p.GetPlayerBaseMod().GetName(), Type, Param)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user