Use topLevelEventLogger instead of MiraiLogger.TopLevel for non-BotEvent events

This commit is contained in:
Him188 2021-04-29 16:23:45 +08:00
parent a77b52e7d3
commit d755ebf7ee

View File

@ -172,10 +172,12 @@ private fun logEvent(event: Event) {
if (event is BotEvent) {
event.bot.logger.verbose { "Event: $event" }
} else {
MiraiLogger.TopLevel.verbose { "Event: $event" }
topLevelEventLogger.verbose { "Event: $event" }
}
}
private val topLevelEventLogger by lazy { MiraiLogger.create("EventPipeline") }
/**
* Java 广播一个事件的唯一途径.
*