Minor fix.

This commit is contained in:
genxium 2023-02-01 23:17:55 +08:00
parent c75f642011
commit d560392c79

View File

@ -1749,7 +1749,7 @@ func (pR *Room) startBattleUdpTunnel() {
pReq := new(pb.WsReq)
bytes := message[0:rlen]
if unmarshalErr := proto.Unmarshal(bytes, pReq); nil != unmarshalErr {
Logger.Warn("`BattleUdpTunnel` for roomId=%d failed to unmarshal", zap.Error(unmarshalErr))
Logger.Warn(fmt.Sprintf("`BattleUdpTunnel` for roomId=%d failed to unmarshal %d bytes", pR.Id, rlen), zap.Error(unmarshalErr))
continue
}
playerId := pReq.PlayerId