mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 02:37:08 -07:00
Host process cleanup.
This commit is contained in:
parent
dd835d5503
commit
7a19b6a2b3
9 changed files with 46 additions and 65 deletions
|
@ -1,5 +1,6 @@
|
|||
using System;
|
||||
using System.Threading;
|
||||
using NLog;
|
||||
using NzbDrone.Common.EnvironmentInfo;
|
||||
using NzbDrone.Host;
|
||||
|
||||
|
@ -7,6 +8,8 @@ namespace NzbDrone.Console
|
|||
{
|
||||
public static class ConsoleApp
|
||||
{
|
||||
private static readonly Logger Logger = LogManager.GetCurrentClassLogger();
|
||||
|
||||
public static void Main(string[] args)
|
||||
{
|
||||
try
|
||||
|
@ -18,7 +21,7 @@ namespace NzbDrone.Console
|
|||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
System.Console.WriteLine(e.ToString());
|
||||
Logger.FatalException(e.Message, e);
|
||||
System.Console.ReadLine();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue