Use Plugin.name for JvmPlugin.logger

This commit is contained in:
Him188 2020-09-13 02:16:49 +08:00
parent 77bc76be24
commit c25733b8ac

View File

@ -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()
}