1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-08-18 08:19:38 +02:00

Added console logging in case NLog fails to initialize.

This commit is contained in:
Taloth Saldono 2018-02-27 21:35:32 +01:00 committed by Leonardo Galli
parent 79b3682b0f
commit 400cf0e073

View File

@ -23,7 +23,15 @@ public static void Main(string[] args)
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 (SocketException e)