|
|
@ -3,6 +3,7 @@ using Nancy.Bootstrapper;
|
|
|
|
using Nancy.Diagnostics;
|
|
|
|
using Nancy.Diagnostics;
|
|
|
|
using NzbDrone.Api.ErrorManagement;
|
|
|
|
using NzbDrone.Api.ErrorManagement;
|
|
|
|
using NzbDrone.Api.Extensions.Pipelines;
|
|
|
|
using NzbDrone.Api.Extensions.Pipelines;
|
|
|
|
|
|
|
|
using NzbDrone.Common.EnvironmentInfo;
|
|
|
|
using NzbDrone.Common.Instrumentation;
|
|
|
|
using NzbDrone.Common.Instrumentation;
|
|
|
|
using NzbDrone.Core.Instrumentation;
|
|
|
|
using NzbDrone.Core.Instrumentation;
|
|
|
|
using NzbDrone.Core.Lifecycle;
|
|
|
|
using NzbDrone.Core.Lifecycle;
|
|
|
@ -26,6 +27,11 @@ namespace NzbDrone.Api
|
|
|
|
{
|
|
|
|
{
|
|
|
|
_logger.Info("Starting NzbDrone API");
|
|
|
|
_logger.Info("Starting NzbDrone API");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (RuntimeInfo.IsProduction)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
DiagnosticsHook.Disable(pipelines);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
RegisterPipelines(pipelines);
|
|
|
|
RegisterPipelines(pipelines);
|
|
|
|
|
|
|
|
|
|
|
|
container.Resolve<DatabaseTarget>().Register();
|
|
|
|
container.Resolve<DatabaseTarget>().Register();
|
|
|
|