Fix migration logs
This commit is contained in:
@@ -26,10 +26,10 @@ class MigrationDetectorImpl @Inject constructor(
|
|||||||
if (lastVersion != currentVersion) {
|
if (lastVersion != currentVersion) {
|
||||||
migrationExecutors
|
migrationExecutors
|
||||||
.filter { it.migratingFrom <= lastVersion }
|
.filter { it.migratingFrom <= lastVersion }
|
||||||
.forEach {
|
.forEach { executor ->
|
||||||
runCatchingExceptCancel { it.executeMigration() }
|
runCatchingExceptCancel { executor.executeMigration() }
|
||||||
.onFailure { logger.e(it) { "Migration executor failed: $it" } }
|
.onFailure { logger.e(it) { "Migration executor failed: $executor" } }
|
||||||
.onSuccess { logger.i { "Migration executor succeeded: $it" } }
|
.onSuccess { logger.i { "Migration executor succeeded: $executor" } }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user