From bc711d65e60639f999ae612ea64c41322539195c Mon Sep 17 00:00:00 2001 From: glax Date: Mon, 15 Jan 2024 23:43:34 +0100 Subject: [PATCH] Formatted Logoutput --- CS2GSI/CS2GSI.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/CS2GSI/CS2GSI.cs b/CS2GSI/CS2GSI.cs index 7b2a8db..b671096 100644 --- a/CS2GSI/CS2GSI.cs +++ b/CS2GSI/CS2GSI.cs @@ -41,9 +41,7 @@ public class CS2GSI if (_lastLocalGameState is not null && _allGameStates.Count > 0) { List> generatedEvents = CS2EventGenerator.GenerateEvents(_lastLocalGameState.Value, newState, _allGameStates.Last()); - this.logger?.Log(LogLevel.Information, $"Generated {generatedEvents.Count} events."); - if(generatedEvents.Count > 0) - this.logger?.Log(LogLevel.Debug, $"Events:\n\t{string.Join("\n\t", generatedEvents)}"); + this.logger?.Log(LogLevel.Information, $"Generated {generatedEvents.Count} events:\n\t{string.Join("\n\t", generatedEvents)}"); InvokeEvents(generatedEvents); } this._lastLocalGameState = newState.UpdateGameStateForLocal(_lastLocalGameState);