mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-22 02:18:26 +00:00
Log flywaydb migrations
This commit is contained in:
@ -22,8 +22,10 @@ object ScribeConfigure {
|
|||||||
Sync[F].delay {
|
Sync[F].delay {
|
||||||
replaceJUL()
|
replaceJUL()
|
||||||
val docspellLogger = scribe.Logger("docspell")
|
val docspellLogger = scribe.Logger("docspell")
|
||||||
|
val flywayLogger = scribe.Logger("org.flywaydb")
|
||||||
unsafeConfigure(scribe.Logger.root, cfg.copy(minimumLevel = getRootMinimumLevel))
|
unsafeConfigure(scribe.Logger.root, cfg.copy(minimumLevel = getRootMinimumLevel))
|
||||||
unsafeConfigure(docspellLogger, cfg)
|
unsafeConfigure(docspellLogger, cfg)
|
||||||
|
unsafeConfigure(flywayLogger, cfg)
|
||||||
}
|
}
|
||||||
|
|
||||||
private[this] def getRootMinimumLevel: Level =
|
private[this] def getRootMinimumLevel: Level =
|
||||||
|
@ -38,7 +38,6 @@ object FlywayMigrate {
|
|||||||
.locations(locations: _*)
|
.locations(locations: _*)
|
||||||
.load()
|
.load()
|
||||||
|
|
||||||
fw.repair()
|
|
||||||
fw.migrate()
|
fw.migrate()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user