From 05df752cc8a4f10db70a73c871e2ef6d3c9e4fcc Mon Sep 17 00:00:00 2001 From: "kay.one" Date: Sun, 12 Feb 2012 23:28:01 -0800 Subject: [PATCH] Fix: Downgraded some log levels for less verbose logging --- NzbDrone.Core/CentralDispatch.cs | 2 +- NzbDrone.Core/Datastore/MigrationLogger.cs | 4 ++-- NzbDrone.Core/Providers/EpisodeProvider.cs | 4 +--- NzbDrone.Core/Providers/ExternalNotificationProvider.cs | 2 +- NzbDrone.Core/Providers/IndexerProvider.cs | 2 +- NzbDrone.Core/Providers/NewznzbProvider.cs | 2 +- NzbDrone.Core/Providers/QualityTypeProvider.cs | 2 +- 7 files changed, 8 insertions(+), 10 deletions(-) diff --git a/NzbDrone.Core/CentralDispatch.cs b/NzbDrone.Core/CentralDispatch.cs index 24392d5fc..b6b427a9c 100644 --- a/NzbDrone.Core/CentralDispatch.cs +++ b/NzbDrone.Core/CentralDispatch.cs @@ -126,7 +126,7 @@ private void InitJobs() private void InitExternalNotifications() { - logger.Info("Initializing External Notifications..."); + logger.Debug("Initializing External Notifications..."); Kernel.Bind().To(); Kernel.Bind().To(); Kernel.Bind().To(); diff --git a/NzbDrone.Core/Datastore/MigrationLogger.cs b/NzbDrone.Core/Datastore/MigrationLogger.cs index fc008377f..46de8a280 100644 --- a/NzbDrone.Core/Datastore/MigrationLogger.cs +++ b/NzbDrone.Core/Datastore/MigrationLogger.cs @@ -12,12 +12,12 @@ public class MigrationLogger : ILogger public void Started(List currentVersion, long finalVersion) { - Logger.Info("Starting Datastore migration {0} -> {1}", String.Join(",", currentVersion), finalVersion); + Logger.Debug("Starting database migration {0} -> {1}", String.Join(",", currentVersion), finalVersion); } public void MigrateUp(long version, string migrationName) { - Logger.Info("Starting MigrateUp {0} [{1}]", version, migrationName); + Logger.Info("Starting migration {0} [{1}]", version, migrationName); } public void MigrateDown(long version, string migrationName) diff --git a/NzbDrone.Core/Providers/EpisodeProvider.cs b/NzbDrone.Core/Providers/EpisodeProvider.cs index 862a9b708..0aceb7799 100644 --- a/NzbDrone.Core/Providers/EpisodeProvider.cs +++ b/NzbDrone.Core/Providers/EpisodeProvider.cs @@ -409,13 +409,11 @@ public virtual void SetSeasonIgnore(long seriesId, int seasonNumber, bool isIgno public virtual void SetEpisodeIgnore(int episodeId, bool isIgnored) { - logger.Info("Setting ignore flag on Episode:{0} to {1}", episodeId, isIgnored); - _database.Execute(@"UPDATE Episodes SET Ignored = @0 WHERE EpisodeId = @1", isIgnored, episodeId); - logger.Info("Ignore flag for Episode:{0} successfully set to {1}", episodeId, isIgnored); + logger.Info("Ignore flag for Episode:{0} was set to {1}", episodeId, isIgnored); } public virtual bool IsFirstOrLastEpisodeOfSeason(int seriesId, int seasonNumber, int episodeNumber) diff --git a/NzbDrone.Core/Providers/ExternalNotificationProvider.cs b/NzbDrone.Core/Providers/ExternalNotificationProvider.cs index 110658482..f5c14f6cc 100644 --- a/NzbDrone.Core/Providers/ExternalNotificationProvider.cs +++ b/NzbDrone.Core/Providers/ExternalNotificationProvider.cs @@ -62,7 +62,7 @@ public virtual IList GetEnabledExternalNotifiers() public virtual void InitializeNotifiers(IList notifiers) { - Logger.Info("Initializing notifiers. Count {0}", notifiers.Count); + Logger.Debug("Initializing notifiers. Count {0}", notifiers.Count); _notifiers = notifiers; diff --git a/NzbDrone.Core/Providers/IndexerProvider.cs b/NzbDrone.Core/Providers/IndexerProvider.cs index e82b19ef5..ef6550ca2 100644 --- a/NzbDrone.Core/Providers/IndexerProvider.cs +++ b/NzbDrone.Core/Providers/IndexerProvider.cs @@ -60,7 +60,7 @@ public virtual IndexerDefinition GetSettings(Type type) public virtual void InitializeIndexers(IList indexers) { - Logger.Info("Initializing indexers. Count {0}", indexers.Count); + Logger.Debug("Initializing indexers. Count {0}", indexers.Count); _indexers = indexers; diff --git a/NzbDrone.Core/Providers/NewznzbProvider.cs b/NzbDrone.Core/Providers/NewznzbProvider.cs index 5741a258a..c8dfaadbd 100644 --- a/NzbDrone.Core/Providers/NewznzbProvider.cs +++ b/NzbDrone.Core/Providers/NewznzbProvider.cs @@ -63,7 +63,7 @@ public virtual void SaveAll(IEnumerable definitions) public virtual void InitializeNewznabIndexers(IList indexers) { - Logger.Info("Initializing Newznab indexers. Count {0}", indexers.Count); + Logger.Debug("Initializing Newznab indexers. Count {0}", indexers.Count); var currentIndexers = All(); diff --git a/NzbDrone.Core/Providers/QualityTypeProvider.cs b/NzbDrone.Core/Providers/QualityTypeProvider.cs index 34d33bd07..9f8793213 100644 --- a/NzbDrone.Core/Providers/QualityTypeProvider.cs +++ b/NzbDrone.Core/Providers/QualityTypeProvider.cs @@ -57,7 +57,7 @@ public virtual void SetupDefault() if (All().Count != 0) return; - Logger.Info("Setting up default quality types"); + Logger.Debug("Setting up default quality types"); var qualityTypes = new List(); qualityTypes.Add(new QualityType { QualityTypeId = 1, Name = "SDTV", MinSize = 0, MaxSize = 100 });