diff --git a/src/NzbDrone.Core/Instrumentation/ReconfigureLogging.cs b/src/NzbDrone.Core/Instrumentation/ReconfigureLogging.cs index 391c22894..a951b952b 100644 --- a/src/NzbDrone.Core/Instrumentation/ReconfigureLogging.cs +++ b/src/NzbDrone.Core/Instrumentation/ReconfigureLogging.cs @@ -11,8 +11,7 @@ using NzbDrone.Core.Messaging.Events; namespace NzbDrone.Core.Instrumentation { - public class ReconfigureLogging : IHandleAsync, - IHandle + public class ReconfigureLogging : IHandleAsync { private readonly IConfigFileProvider _configFileProvider; @@ -79,10 +78,5 @@ namespace NzbDrone.Core.Instrumentation { Reconfigure(); } - - public void Handle(ApplicationStartedEvent message) - { - Reconfigure(); - } } } diff --git a/src/NzbDrone.Host/Bootstrap.cs b/src/NzbDrone.Host/Bootstrap.cs index 066b38d60..392478458 100644 --- a/src/NzbDrone.Host/Bootstrap.cs +++ b/src/NzbDrone.Host/Bootstrap.cs @@ -8,6 +8,7 @@ using NzbDrone.Common.Instrumentation; using NzbDrone.Common.Processes; using NzbDrone.Common.Security; using NzbDrone.Core.Datastore; +using NzbDrone.Core.Instrumentation; namespace NzbDrone.Host { @@ -56,6 +57,8 @@ namespace NzbDrone.Host private static void Start(ApplicationModes applicationModes, StartupContext startupContext) { + _container.Resolve().Reconfigure(); + if (!IsInUtilityMode(applicationModes)) { if (startupContext.Flags.Contains(StartupContext.RESTART))