From c25733b8ac85a7df5fa2d1c516e0fd1f906d3d1e Mon Sep 17 00:00:00 2001 From: Him188 Date: Sun, 13 Sep 2020 02:16:49 +0800 Subject: [PATCH] Use Plugin.name for JvmPlugin.logger --- .../mamoe/mirai/console/internal/plugin/JvmPluginInternal.kt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/backend/mirai-console/src/main/kotlin/net/mamoe/mirai/console/internal/plugin/JvmPluginInternal.kt b/backend/mirai-console/src/main/kotlin/net/mamoe/mirai/console/internal/plugin/JvmPluginInternal.kt index 26e3d6ed2..8dda88fa7 100644 --- a/backend/mirai-console/src/main/kotlin/net/mamoe/mirai/console/internal/plugin/JvmPluginInternal.kt +++ b/backend/mirai-console/src/main/kotlin/net/mamoe/mirai/console/internal/plugin/JvmPluginInternal.kt @@ -64,9 +64,7 @@ internal abstract class JvmPluginInternal( // region JvmPlugin final override val logger: MiraiLogger by lazy { BuiltInJvmPluginLoaderImpl.logger.runCatchingLog { - MiraiConsole.createLogger( - "Plugin ${this.description.name}" - ) + MiraiConsole.createLogger(this.description.name) }.getOrThrow() }