mirror of
https://github.com/Radarr/Radarr
synced 2026-03-06 12:34:11 +01:00
Added console logging in case NLog fails to initialize.
This commit is contained in:
parent
ecb0438b16
commit
c9ff55f601
1 changed files with 9 additions and 1 deletions
|
|
@ -25,7 +25,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 (SonarrStartupException ex)
|
||||
|
|
|
|||
Loading…
Reference in a new issue