From 86d4f8069c6aa62c89af383671c3ba3a383b84f9 Mon Sep 17 00:00:00 2001 From: MrGadget1024 <9826063+MrGadget1024@users.noreply.github.com> Date: Fri, 6 Jan 2023 16:47:19 -0500 Subject: [PATCH] Changed to LogError --- Assets/Mirror/Core/NetworkClient.cs | 2 +- Assets/Mirror/Core/NetworkServer.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Assets/Mirror/Core/NetworkClient.cs b/Assets/Mirror/Core/NetworkClient.cs index e5f25e806..1c293cc1d 100644 --- a/Assets/Mirror/Core/NetworkClient.cs +++ b/Assets/Mirror/Core/NetworkClient.cs @@ -1202,7 +1202,7 @@ internal static void OnObjectSpawnFinished(ObjectSpawnFinishedMessage _) { // One warning is sufficient. if (nulls.Count == 0) - Debug.LogWarning("Null entry found in NetworkClient.spawned will be removed.\nThis is unexpected...was the NetworkIdentity not destroyed properly?"); + Debug.LogError("Null entry found in NetworkClient.spawned will be removed.\nThis is unexpected...was the NetworkIdentity not destroyed properly?"); nulls.Add(kvp.Key); } } diff --git a/Assets/Mirror/Core/NetworkServer.cs b/Assets/Mirror/Core/NetworkServer.cs index c4cb7dcaa..c694659ff 100644 --- a/Assets/Mirror/Core/NetworkServer.cs +++ b/Assets/Mirror/Core/NetworkServer.cs @@ -1061,7 +1061,7 @@ static void SpawnObserversForConnection(NetworkConnectionToClient conn) { // One warning is sufficient. if (nulls.Count == 0) - Debug.LogWarning("SpawnObserversForConnection: Null entries found in spawned will be removed. This should not happen."); + Debug.LogError("SpawnObserversForConnection: Null entries found in spawned will be removed. This should not happen."); nulls.Add(kvp.Key); continue; } @@ -1775,7 +1775,7 @@ static void BroadcastToConnection(NetworkConnectionToClient connection) { // One warning is sufficient. if (!hasNulls) - Debug.LogWarning($"Null entries found in observing list for connectionId={connection.connectionId} will be removed.\nPlease call NetworkServer.Destroy to destroy networked objects. Don't use GameObject.Destroy."); + Debug.LogError($"Null entries found in observing list for connectionId={connection.connectionId} will be removed.\nPlease call NetworkServer.Destroy to destroy networked objects. Don't use GameObject.Destroy."); hasNulls = true; } }