From d560392c794115b555cf7c5d8a4d1d79385e6dc9 Mon Sep 17 00:00:00 2001 From: genxium Date: Wed, 1 Feb 2023 23:17:55 +0800 Subject: [PATCH] Minor fix. --- battle_srv/models/room.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/battle_srv/models/room.go b/battle_srv/models/room.go index bbd84d5..6b52d77 100644 --- a/battle_srv/models/room.go +++ b/battle_srv/models/room.go @@ -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