From a3042197c5170102ef9ebb36d0be7e5d6c1adf1d Mon Sep 17 00:00:00 2001 From: Keivan Beigi Date: Tue, 16 Dec 2014 23:36:33 -0800 Subject: [PATCH] GlobalExceptionHandlers are now registered with other loggers --- src/NzbDrone.Common/Instrumentation/NzbDroneLogger.cs | 2 ++ src/NzbDrone.Host/Bootstrap.cs | 1 - src/NzbDrone.Update/UpdateApp.cs | 2 -- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/NzbDrone.Common/Instrumentation/NzbDroneLogger.cs b/src/NzbDrone.Common/Instrumentation/NzbDroneLogger.cs index 07018cb96..6a7942201 100644 --- a/src/NzbDrone.Common/Instrumentation/NzbDroneLogger.cs +++ b/src/NzbDrone.Common/Instrumentation/NzbDroneLogger.cs @@ -29,6 +29,8 @@ namespace NzbDrone.Common.Instrumentation _isConfigured = true; + GlobalExceptionHandlers.Register(); + var appFolderInfo = new AppFolderInfo(startupContext); if (Debugger.IsAttached) diff --git a/src/NzbDrone.Host/Bootstrap.cs b/src/NzbDrone.Host/Bootstrap.cs index 51d82eb2a..26acc8407 100644 --- a/src/NzbDrone.Host/Bootstrap.cs +++ b/src/NzbDrone.Host/Bootstrap.cs @@ -20,7 +20,6 @@ namespace NzbDrone.Host { try { - GlobalExceptionHandlers.Register(); X509CertificateValidationPolicy.Register(); Logger.Info("Starting NzbDrone - {0} - Version {1}", Assembly.GetCallingAssembly().Location, Assembly.GetExecutingAssembly().GetName().Version); diff --git a/src/NzbDrone.Update/UpdateApp.cs b/src/NzbDrone.Update/UpdateApp.cs index 43723c77b..cd969fce3 100644 --- a/src/NzbDrone.Update/UpdateApp.cs +++ b/src/NzbDrone.Update/UpdateApp.cs @@ -37,8 +37,6 @@ namespace NzbDrone.Update X509CertificateValidationPolicy.Register(); - GlobalExceptionHandlers.Register(); - _container = UpdateContainerBuilder.Build(startupArgument); Logger.Info("Updating NzbDrone to version {0}", BuildInfo.Version);