mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-05 07:30:09 +08:00
Use topLevelEventLogger instead of MiraiLogger.TopLevel for non-BotEvent events
This commit is contained in:
parent
a77b52e7d3
commit
d755ebf7ee
@ -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 广播一个事件的唯一途径.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user