From 5199e3915708e909d45eae6cf3bd8c48f4b127e7 Mon Sep 17 00:00:00 2001 From: TheXorog <56395159+TheXorog@users.noreply.github.com> Date: Wed, 4 May 2022 14:51:32 +0200 Subject: [PATCH] [RM] Removed Logger Counter --- Logger.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Logger.cs b/Logger.cs index e688bf8..f5e2657 100644 --- a/Logger.cs +++ b/Logger.cs @@ -77,13 +77,12 @@ public class Logger : ILogger for (int i = 0; i < _loggerObjects.LogsToPost.Count; i++) { - var currentLog = _loggerObjects.LogsToPost.First(); + var currentLog = _loggerObjects.LogsToPost[0]; _loggerObjects.LogsToPost.Remove(currentLog); - if (currentLog is null || currentLog.Message is null) + + if (currentLog is null) { - LogWarn($"Missed log message due to garbage collection"); - _loggerObjects.LogsToPost.Remove(currentLog); continue; }