[Minor] logger fix in Migrations
This commit is contained in:
parent
394c3735e3
commit
7dd6aa8afc
|
@ -157,7 +157,8 @@ public class Migrations {
|
||||||
* @param cert
|
* @param cert
|
||||||
* @param codeMigrationsByRealm
|
* @param codeMigrationsByRealm
|
||||||
*/
|
*/
|
||||||
public void runCodeMigrations(Certificate cert, Map<String, MigrationVersion> currentVersions,
|
public void runCodeMigrations(Certificate cert,
|
||||||
|
Map<String, MigrationVersion> currentVersions,
|
||||||
MapOfLists<String, CodeMigration> codeMigrationsByRealm) {
|
MapOfLists<String, CodeMigration> codeMigrationsByRealm) {
|
||||||
|
|
||||||
MapOfLists<String, Version> migrationsRan = new MapOfLists<>();
|
MapOfLists<String, Version> migrationsRan = new MapOfLists<>();
|
||||||
|
@ -197,7 +198,8 @@ public class Migrations {
|
||||||
if (this.verbose)
|
if (this.verbose)
|
||||||
logger.info("There were no migrations required!");
|
logger.info("There were no migrations required!");
|
||||||
} else {
|
} else {
|
||||||
logger.info("Migrated " + migrationsRan.size() + " realms!");
|
logger.info(
|
||||||
|
"Performed " + migrationsRan.size() + " migrations on " + migrationsRan.sizeKeys() + " realms.");
|
||||||
addOperationLogs(migrationsRan);
|
addOperationLogs(migrationsRan);
|
||||||
}
|
}
|
||||||
this.migrationsRan = migrationsRan;
|
this.migrationsRan = migrationsRan;
|
||||||
|
|
Loading…
Reference in New Issue