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);