From e01e8223940ee3f7254750bcbd8340a431772f62 Mon Sep 17 00:00:00 2001 From: Taloth Saldono Date: Wed, 18 Oct 2017 23:15:39 +0200 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 d67ee5a5e..4c0833558 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); } }