From c9ff55f6011a1f1d6766494b1bc3c5f2ca67bc4a Mon Sep 17 00:00:00 2001 From: Taloth Saldono Date: Tue, 27 Feb 2018 21:35:32 +0100 Subject: [PATCH] Added console logging in case NLog fails to initialize. --- src/NzbDrone.Console/ConsoleApp.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/NzbDrone.Console/ConsoleApp.cs b/src/NzbDrone.Console/ConsoleApp.cs index 4c0833558..39316bcd1 100644 --- a/src/NzbDrone.Console/ConsoleApp.cs +++ b/src/NzbDrone.Console/ConsoleApp.cs @@ -25,7 +25,15 @@ namespace NzbDrone.Console try { var startupArgs = new StartupContext(args); - NzbDroneLogger.Register(startupArgs, false, true); + try + { + NzbDroneLogger.Register(startupArgs, false, true); + } + catch (Exception ex) + { + System.Console.WriteLine("NLog Exception: " + ex.ToString()); + throw; + } Bootstrap.Start(startupArgs, new ConsoleAlerts()); } catch (SonarrStartupException ex)