File tree Expand file tree Collapse file tree 4 files changed +3
-7
lines changed
Libraries/SPTarkov.Common Expand file tree Collapse file tree 4 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ public static IServiceCollection AddSptLogger(this IServiceCollection collection
6565 {
6666 ArgumentNullException . ThrowIfNull ( collection ) ;
6767
68- FileRollMonitor . RegisterHandler ( ) ;
68+ LogFileRollMonitor . RegisterHandler ( ) ;
6969
7070 if ( isDevelop )
7171 {
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ public ILogger CreateLogger(string categoryName)
3838 public void Dispose ( )
3939 {
4040 // We can stop the file roller a bit early.
41- FileRollMonitor . UnregisterHandler ( ) ;
41+ LogFileRollMonitor . UnregisterHandler ( ) ;
4242
4343 sptLoggerQueueManager . DumpAndStop ( TimeSpan . FromSeconds ( 1 ) ) ;
4444
Original file line number Diff line number Diff line change 55using SPTarkov . Server . Core . Models . Spt . Mod ;
66using SPTarkov . Server . Core . Services . Hosted ;
77using SPTarkov . Server . Core . Utils ;
8- using SPTarkov . Server . Core . Utils . Logger . Handlers ;
98using UnitTests . Mock ;
109
1110namespace UnitTests ;
@@ -55,10 +54,6 @@ private void ConfigureServices()
5554
5655 foreach ( var onLoad in _serviceProvider . GetServices < IOnLoad > ( ) )
5756 {
58- if ( onLoad is FileLogHandler )
59- {
60- continue ;
61- }
6257 onLoad . OnLoad ( cancellationTokenSource . Token ) . Wait ( ) ;
6358 }
6459 }
Original file line number Diff line number Diff line change 1+ using SPTarkov . Common . Logger ;
12using SPTarkov . Common . Models . Logging ;
23using SPTarkov . DI . Annotations ;
34
You can’t perform that action at this time.
0 commit comments