From c2c43666f61d7d0865269ddb0f63e6af2fa06804 Mon Sep 17 00:00:00 2001 From: Qstick Date: Thu, 16 Nov 2017 11:53:36 -0500 Subject: [PATCH] Shutdown logging before Environment.Exit. --- src/NzbDrone.Console/ConsoleApp.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/NzbDrone.Console/ConsoleApp.cs b/src/NzbDrone.Console/ConsoleApp.cs index 61b82ccaa..91fb902aa 100644 --- a/src/NzbDrone.Console/ConsoleApp.cs +++ b/src/NzbDrone.Console/ConsoleApp.cs @@ -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); } }