mirror of
https://github.com/fergalmoran/Readarr.git
synced 2026-03-01 03:06:47 +00:00
Shutdown logging before Environment.Exit.
This commit is contained in:
@@ -57,7 +57,7 @@ namespace NzbDrone.Console
|
||||
|
||||
private static void Exit(ExitCodes exitCode)
|
||||
{
|
||||
LogManager.Flush();
|
||||
LogManager.Shutdown();
|
||||
|
||||
if (exitCode != ExitCodes.Normal)
|
||||
{
|
||||
@@ -80,8 +80,6 @@ namespace NzbDrone.Console
|
||||
System.Console.ReadLine();
|
||||
}
|
||||
|
||||
//Need this to terminate on mono (thanks nlog)
|
||||
LogManager.Configuration = null;
|
||||
Environment.Exit((int)exitCode);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user