mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-22 10:19:38 +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) {
|
if (event is BotEvent) {
|
||||||
event.bot.logger.verbose { "Event: $event" }
|
event.bot.logger.verbose { "Event: $event" }
|
||||||
} else {
|
} else {
|
||||||
MiraiLogger.TopLevel.verbose { "Event: $event" }
|
topLevelEventLogger.verbose { "Event: $event" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private val topLevelEventLogger by lazy { MiraiLogger.create("EventPipeline") }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 在 Java 广播一个事件的唯一途径.
|
* 在 Java 广播一个事件的唯一途径.
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user