Skip to content

Commit

Permalink
Fix bug with logger backlog not working
Browse files Browse the repository at this point in the history
  • Loading branch information
pizzaboxer committed Jul 20, 2023
1 parent 4233d5e commit dc70720
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Bloxstrap/Logger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,13 @@ public void Initialize(bool useTempDir = false)

_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
Expand Down

0 comments on commit dc70720

Please sign in to comment.