Mini change

This commit is contained in:
bskjon 2025-04-11 23:39:02 +02:00
parent 66589ffaf6
commit d1e96f5d2a

View File

@ -36,8 +36,22 @@ class CoordinatorApplication {
private lateinit var storeDatabase: MySqlDataSource private lateinit var storeDatabase: MySqlDataSource
val ioCoroutine = CoroutinesIO() val ioCoroutine = CoroutinesIO().
val defaultCoroutine = CoroutinesDefault() also {
it.addListener(object : Observables.ObservableValue.ValueListener<Throwable> {
override fun onUpdated(value: Throwable) {
log.error { "IO Coroutine" + value.printStackTrace() }
}
})
}
val defaultCoroutine = CoroutinesDefault().
also {
it.addListener(object : Observables.ObservableValue.ValueListener<Throwable> {
override fun onUpdated(value: Throwable) {
log.error { "Default Coroutine" + value.printStackTrace() }
}
})
}
fun getStoreDatabase(): MySqlDataSource { fun getStoreDatabase(): MySqlDataSource {