Added console logging in case NLog fails to initialize.

Taloth Saldono 7 years ago
parent ecb0438b16
commit c9ff55f601

@ -25,7 +25,15 @@ namespace NzbDrone.Console
try try
{ {
var startupArgs = new StartupContext(args); 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()); Bootstrap.Start(startupArgs, new ConsoleAlerts());
} }
catch (SonarrStartupException ex) catch (SonarrStartupException ex)

Loading…
Cancel
Save