Skip to content

Commit

Permalink
print onebot impl while print event stacktrace
Browse files Browse the repository at this point in the history
  • Loading branch information
MrXiaoM committed Feb 22, 2024
1 parent 700df26 commit a9bff12
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import net.mamoe.mirai.event.*
import net.mamoe.mirai.event.events.BotEvent
import net.mamoe.mirai.utils.MiraiLogger
import net.mamoe.mirai.utils.systemProp
import top.mrxiaom.overflow.internal.message.OnebotMessages
import kotlin.coroutines.CoroutineContext

/**
Expand Down Expand Up @@ -68,7 +69,8 @@ internal class SafeListener<in E : Event> internal constructor(
val message =
"An exception occurred when processing event. " +
"Subscriber scope: '$subscriberName'. " +
"Broadcaster scope: '$broadcasterName'"
"Broadcaster scope: '$broadcasterName'. " +
"Onebot implementation: '${OnebotMessages.appName} v${OnebotMessages.appVersion}'"
logger.warning(message, e)

} else {
Expand Down

0 comments on commit a9bff12

Please sign in to comment.