From 7d3f6c81e04d871e5e57a451be17372a657839a7 Mon Sep 17 00:00:00 2001 From: "kay.one" Date: Mon, 25 Apr 2011 11:41:20 -0700 Subject: [PATCH] Exceptioneer is only enabled during release. Nzbdrone.exe waits for enter before closing on error. --- NzbDrone.Web/log.config | 8 ++++++++ NzbDrone/Program.cs | 15 ++++++++++----- 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/NzbDrone.Web/log.config b/NzbDrone.Web/log.config index d5f9d9205..ac57d4f6d 100644 --- a/NzbDrone.Web/log.config +++ b/NzbDrone.Web/log.config @@ -12,6 +12,9 @@ + @@ -19,6 +22,11 @@ + + + + + diff --git a/NzbDrone/Program.cs b/NzbDrone/Program.cs index eb891dd20..2a585add6 100644 --- a/NzbDrone/Program.cs +++ b/NzbDrone/Program.cs @@ -48,6 +48,9 @@ namespace NzbDrone { AppDomainException(e); } + + Console.WriteLine("Press enter to exit."); + Console.ReadLine(); } private static void Attach() @@ -88,12 +91,14 @@ namespace NzbDrone Console.WriteLine("EPIC FAIL: {0}", excepion); Logger.Fatal("EPIC FAIL: {0}", excepion); +#if Release new Client - { - ApiKey = "43BBF60A-EB2A-4C1C-B09E-422ADF637265", - ApplicationName = "NZBDrone", - CurrentException = excepion as Exception - }.Submit(); + { + ApiKey = "43BBF60A-EB2A-4C1C-B09E-422ADF637265", + ApplicationName = "NZBDrone", + CurrentException = excepion as Exception + }.Submit(); +#endif IISController.StopServer(); }