修改日志
This commit is contained in:
parent
d28d1a2cde
commit
f71ea6ca19
|
@ -1638,8 +1638,8 @@ func (this *Player) OnMiniTimer() {
|
|||
})
|
||||
}
|
||||
// 长时间掉线又没有删除缓存
|
||||
if !this.dropTime.IsZero() && this.scene == nil && time.Now().Sub(this.dropTime).Minutes() > 20 {
|
||||
logger.Logger.Errorf("清除缓存异常 snid:%v dirty:%v lastLogoutTime:%v lastGameId:%v", this.SnId, this.dirty, this.LastLogoutTime, this.LastGameId)
|
||||
if this.IsOffline() && time.Now().Sub(this.LastLogoutTime) > time.Hour*2 {
|
||||
logger.Logger.Warnf("清除缓存异常 snid:%v dirty:%v lastLogoutTime:%v lastGameId:%v", this.SnId, this.dirty, this.LastLogoutTime, this.LastGameId)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue