diff --git a/src/NzbDrone.Core/Datastore/Migration/Framework/NzbDroneMigrationBase.cs b/src/NzbDrone.Core/Datastore/Migration/Framework/NzbDroneMigrationBase.cs index 860bba839..961af94d4 100644 --- a/src/NzbDrone.Core/Datastore/Migration/Framework/NzbDroneMigrationBase.cs +++ b/src/NzbDrone.Core/Datastore/Migration/Framework/NzbDroneMigrationBase.cs @@ -45,11 +45,11 @@ namespace NzbDrone.Core.Datastore.Migration.Framework switch (MigrationContext.Current.MigrationType) { case MigrationType.Main: - _logger.Info("Starting migration to " + Version); + LogMigrationMessage(MigrationType.Main); MainDbUpgrade(); return; case MigrationType.Log: - _logger.Info("Starting migration to " + Version); + LogMigrationMessage(MigrationType.Log); LogDbUpgrade(); return; case MigrationType.Cache: @@ -58,7 +58,10 @@ namespace NzbDrone.Core.Datastore.Migration.Framework return; default: + LogMigrationMessage(MigrationType.Log); LogDbUpgrade(); + + LogMigrationMessage(MigrationType.Main); MainDbUpgrade(); return; } @@ -68,5 +71,10 @@ namespace NzbDrone.Core.Datastore.Migration.Framework { throw new NotImplementedException(); } + + private void LogMigrationMessage(MigrationType type) + { + _logger.Info("Starting migration of {0} DB to {1}", type.ToString(), Version); + } } }