Skip to content

Commit 8404008

Browse files
improve ClientGameStateManager error logs (space-wizards#6452)
* improve ClientGameStateManager error logs * make it even better
1 parent 63f1d3b commit 8404008

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Robust.Client/GameStates/ClientGameStateManager.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -942,8 +942,7 @@ private void ApplyEntityStates(GameState curState, GameState? nextState)
942942
}
943943
catch (Exception e)
944944
{
945-
_sawmill.Error($"Caught exception while updating entity broadphases");
946-
_runtimeLog.LogException(e, $"{nameof(ClientGameStateManager)}.{nameof(ApplyEntityStates)}");
945+
_runtimeLog.LogException(e, $"{nameof(ClientGameStateManager)}.{nameof(ApplyEntityStates)} caught exception while updating broadphase!");
947946
}
948947
}
949948

@@ -956,8 +955,7 @@ private void ApplyEntityStates(GameState curState, GameState? nextState)
956955
}
957956
catch (Exception e)
958957
{
959-
_sawmill.Error($"Caught exception while deleting entities");
960-
_runtimeLog.LogException(e, $"{nameof(ClientGameStateManager)}.{nameof(ApplyEntityStates)}");
958+
_runtimeLog.LogException(e, $"{nameof(ClientGameStateManager)}.{nameof(ApplyEntityStates)} caught exception while deleting entities!");
961959
#if !EXCEPTION_TOLERANCE
962960
throw;
963961
#endif

0 commit comments

Comments
 (0)