Skip to content

Commit

Permalink
Moved preloader/harmony logging formatting outside of the critical se…
Browse files Browse the repository at this point in the history
…ction lock.
  • Loading branch information
CptMoore committed May 20, 2024
1 parent 0f56720 commit db782da
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ModTekPreloader/Logging/Logger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,10 @@ internal Logger(string path)
[MethodImpl(MethodImplOptions.Synchronized)]
internal void Log(object obj)
{
var line = $"{GetTime()}{_prefix} {obj}";
lock (this)
{
_writer.WriteLine($"{GetTime()}{_prefix} {obj}");
_writer.WriteLine(line);
}
}

Expand Down

0 comments on commit db782da

Please sign in to comment.