Improve SptLogger stability & do not implement IDisposable
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user