Log kodein
This commit is contained in:
parent
01636083e1
commit
a2ac8d19af
@ -19,7 +19,6 @@ import org.kodein.di.generic.singleton
|
||||
import org.slf4j.Logger
|
||||
import org.slf4j.LoggerFactory
|
||||
import javax.sql.DataSource
|
||||
import kotlin.system.exitProcess
|
||||
|
||||
val kodein = Kodein {
|
||||
import(serviceModule)
|
||||
@ -33,6 +32,7 @@ fun main() {
|
||||
val config by kodein.instance<Config>()
|
||||
val logger by kodein.instance<Logger>()
|
||||
logger.info("Running application with configuration $config")
|
||||
logger.info("Kodein bindings\n${kodein.container.tree.bindings.description()}")
|
||||
val migration by kodein.instance<Migration>()
|
||||
migration.migrate()
|
||||
serve(kodein)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user