mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-08 17:20:11 +08:00
Make log clear
This commit is contained in:
parent
5ceaebca5f
commit
0f1e9a3dd2
@ -44,8 +44,9 @@ internal class TIMBotNetworkHandler internal constructor(coroutineContext: Corou
|
||||
|
||||
|
||||
override val coroutineContext: CoroutineContext =
|
||||
coroutineContext + NetworkDispatcher + CoroutineExceptionHandler { _, e ->
|
||||
bot.logger.error("An exception was thrown in a coroutine under TIMBotNetworkHandler", e)
|
||||
coroutineContext + NetworkDispatcher + CoroutineExceptionHandler { context, e ->
|
||||
bot.logger.error("An exception was thrown in ${context[CoroutineName]?.let { "coroutine $it" }
|
||||
?: "an unnamed coroutine"} under TIMBotNetworkHandler", e)
|
||||
} + supervisor
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user