mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-27 00:30:17 +08:00
Use Plugin.name for JvmPlugin.logger
This commit is contained in:
parent
77bc76be24
commit
c25733b8ac
@ -64,9 +64,7 @@ internal abstract class JvmPluginInternal(
|
|||||||
// region JvmPlugin
|
// region JvmPlugin
|
||||||
final override val logger: MiraiLogger by lazy {
|
final override val logger: MiraiLogger by lazy {
|
||||||
BuiltInJvmPluginLoaderImpl.logger.runCatchingLog {
|
BuiltInJvmPluginLoaderImpl.logger.runCatchingLog {
|
||||||
MiraiConsole.createLogger(
|
MiraiConsole.createLogger(this.description.name)
|
||||||
"Plugin ${this.description.name}"
|
|
||||||
)
|
|
||||||
}.getOrThrow()
|
}.getOrThrow()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user