From 7b49669b95cff1c58033bde5a7968b563b2fbd00 Mon Sep 17 00:00:00 2001 From: Keivan Beigi Date: Fri, 3 Oct 2014 15:55:11 -0700 Subject: [PATCH] Log global inner exceptions --- .../Instrumentation/GlobalExceptionHandlers.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/NzbDrone.Common/Instrumentation/GlobalExceptionHandlers.cs b/src/NzbDrone.Common/Instrumentation/GlobalExceptionHandlers.cs index ed32997eb..d434152c3 100644 --- a/src/NzbDrone.Common/Instrumentation/GlobalExceptionHandlers.cs +++ b/src/NzbDrone.Common/Instrumentation/GlobalExceptionHandlers.cs @@ -32,6 +32,11 @@ namespace NzbDrone.Common.Instrumentation Console.WriteLine("EPIC FAIL: {0}", exception); Logger.FatalException("EPIC FAIL: " + exception.Message, exception); + + if (exception.InnerException != null) + { + AppDomainException(exception.InnerException); + } } } } \ No newline at end of file