mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-23 14:55:20 -07:00
Added console logging in case NLog fails to initialize.
This commit is contained in:
parent
79b3682b0f
commit
400cf0e073
1 changed files with 9 additions and 1 deletions
|
@ -23,7 +23,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 (SocketException e)
|
catch (SocketException e)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue