Host process cleanup.

This commit is contained in:
Keivan Beigi 2013-08-30 15:55:01 -07:00
commit 7a19b6a2b3
9 changed files with 46 additions and 65 deletions

View file

@ -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();
}