Mini change
This commit is contained in:
parent
66589ffaf6
commit
d1e96f5d2a
@ -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 {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user