From 254a0b929df7a24e754c1bdaeac163289f6f6d50 Mon Sep 17 00:00:00 2001 From: ThatDan123 <56727168+ThatDan123@users.noreply.github.com> Date: Mon, 15 Mar 2021 21:22:10 +0000 Subject: [PATCH] Added what size the rejected packet was (#2645) --- Assets/Mirror/Runtime/NetworkConnection.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/Mirror/Runtime/NetworkConnection.cs b/Assets/Mirror/Runtime/NetworkConnection.cs index eb309d977..5a25cecc4 100644 --- a/Assets/Mirror/Runtime/NetworkConnection.cs +++ b/Assets/Mirror/Runtime/NetworkConnection.cs @@ -93,7 +93,7 @@ protected static bool ValidatePacketSize(ArraySegment segment, int channel { if (segment.Count > Transport.activeTransport.GetMaxPacketSize(channelId)) { - Debug.LogError("NetworkConnection.ValidatePacketSize: cannot send packet larger than " + Transport.activeTransport.GetMaxPacketSize(channelId) + " bytes"); + Debug.LogError($"NetworkConnection.ValidatePacketSize: cannot send packet larger than {Transport.activeTransport.GetMaxPacketSize(channelId)} bytes, was {segment.Count} bytes"); return false; }