日志写入采用异步方式
This commit is contained in:
parent
edae9c0a5e
commit
d0aec519d1
@ -1056,11 +1056,11 @@ func (p *Player) TeLog(Type string, Param map[string]interface{}) {
|
||||
if agent != nil {
|
||||
Param["Ip"] = agent.RemoteAddr().String()
|
||||
}
|
||||
telog.Te.Track(p.GetPlayerBaseMod().GetName(), p.GetPlayerBaseMod().GetName(), Type, Param)
|
||||
go telog.Te.Track(p.GetPlayerBaseMod().GetName(), p.GetPlayerBaseMod().GetName(), Type, Param)
|
||||
BaseMod := p.PlayMod.getBaseMod()
|
||||
|
||||
//途游GA
|
||||
ga.GAlogEvent(Type, BaseMod.Account, "", Param)
|
||||
go ga.GAlogEvent(Type, BaseMod.Account, "", Param)
|
||||
}
|
||||
|
||||
func (p *Player) Kafka(Type string, Param map[string]interface{}) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user