From 9cad9bbbd7e47c893854b3c0a95a9e367d554697 Mon Sep 17 00:00:00 2001 From: "kay.one" Date: Thu, 19 May 2011 19:13:21 -0700 Subject: [PATCH] Optimized logging to improve performance --- NzbDrone.Core/CentralDispatch.cs | 2 +- NzbDrone.Core/Providers/SeriesProvider.cs | 1 + NzbDrone.Web/log.config | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/NzbDrone.Core/CentralDispatch.cs b/NzbDrone.Core/CentralDispatch.cs index 73c0cf34a..82aace69e 100644 --- a/NzbDrone.Core/CentralDispatch.cs +++ b/NzbDrone.Core/CentralDispatch.cs @@ -75,7 +75,7 @@ namespace NzbDrone.Core var logRepository = new SimpleRepository(logDbProvider, SimpleRepositoryOptions.RunMigrations); //dbProvider.ExecuteQuery(new QueryCommand("VACUUM", dbProvider)); - dbProvider.Log = new NlogWriter(); + //dbProvider.Log = new NlogWriter(); _kernel.Bind().ToSelf().InSingletonScope(); _kernel.Bind().ToSelf().InTransientScope(); diff --git a/NzbDrone.Core/Providers/SeriesProvider.cs b/NzbDrone.Core/Providers/SeriesProvider.cs index b3a9b823f..18958712d 100644 --- a/NzbDrone.Core/Providers/SeriesProvider.cs +++ b/NzbDrone.Core/Providers/SeriesProvider.cs @@ -108,6 +108,7 @@ namespace NzbDrone.Core.Providers public virtual Series FindSeries(string title) { + //TODO:Add series alias support here. if a series is not found in the repo should be tried using its aliases var normalizeTitle = Parser.NormalizeTitle(title); return _repository.Single(s => s.CleanTitle == normalizeTitle); } diff --git a/NzbDrone.Web/log.config b/NzbDrone.Web/log.config index ac57d4f6d..8abd77ebc 100644 --- a/NzbDrone.Web/log.config +++ b/NzbDrone.Web/log.config @@ -9,10 +9,10 @@ - -