Skip to content

Commit 6a46b84

Browse files
update
Only log something if we have something to log.
1 parent 8077dbe commit 6a46b84

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

com.unity.netcode.gameobjects/TestHelpers/Runtime/NetcodeIntegrationTest.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1550,8 +1550,12 @@ private void UnloadRemainingScenes()
15501550

15511551
private void LogWaitForMessages()
15521552
{
1553-
VerboseDebug(m_WaitForLog.ToString());
1554-
m_WaitForLog.Clear();
1553+
// If there is nothing to log, then don't log anything
1554+
if (m_WaitForLog.Length > 0)
1555+
{
1556+
VerboseDebug(m_WaitForLog.ToString());
1557+
m_WaitForLog.Clear();
1558+
}
15551559
}
15561560

15571561
private IEnumerator WaitForTickAndFrames(NetworkManager networkManager, int tickCount, float targetFrames)

0 commit comments

Comments
 (0)