From dc70720ff79e8da947d7beae2d25c6905e9a46b1 Mon Sep 17 00:00:00 2001 From: pizzaboxer Date: Thu, 20 Jul 2023 08:47:17 +0100 Subject: [PATCH] Fix bug with logger backlog not working --- Bloxstrap/Logger.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Bloxstrap/Logger.cs b/Bloxstrap/Logger.cs index 3ef73ee..25d21da 100644 --- a/Bloxstrap/Logger.cs +++ b/Bloxstrap/Logger.cs @@ -40,12 +40,13 @@ _filestream = File.Open(location, FileMode.Create, FileAccess.Write, FileShare.Read); + Initialized = true; + if (Backlog.Count > 0) WriteToLog(string.Join("\r\n", Backlog)); WriteLine($"[Logger::Initialize] Finished initializing!"); - Initialized = true; FileLocation = location; // clean up any logs older than a week