Improve SptLogger stability & do not implement IDisposable

This commit is contained in:
Archangel
2025-10-10 16:13:24 +02:00
parent 8fb7b96127
commit c372418165
2 changed files with 12 additions and 32 deletions
@@ -6,7 +6,7 @@ using LogLevel = SPTarkov.Server.Core.Models.Spt.Logging.LogLevel;
namespace SPTarkov.Server.Core.Utils.Logger;
[Injectable(TypePriority = int.MinValue)]
public class SptLogger<T> : ISptLogger<T>, IDisposable
public class SptLogger<T> : ISptLogger<T>
{
private string _category;
private readonly SptLoggerQueueManager _loggerQueueManager;
@@ -206,9 +206,4 @@ public class SptLogger<T> : ISptLogger<T>, IDisposable
{
_loggerQueueManager.DumpAndStop();
}
public void Dispose()
{
_loggerQueueManager.DumpAndStop();
}
}