From a1fdaca051e1d9432adcd6f504cfa72a95988016 Mon Sep 17 00:00:00 2001 From: Shigma <1700011071@pku.edu.cn> Date: Sat, 1 Feb 2020 23:45:21 +0800 Subject: [PATCH] chore: adjust --- packages/koishi-core/src/app.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/koishi-core/src/app.ts b/packages/koishi-core/src/app.ts index 6b9a263bd1..24c2e6b837 100644 --- a/packages/koishi-core/src/app.ts +++ b/packages/koishi-core/src/app.ts @@ -129,9 +129,7 @@ export class App extends Context { this.middleware(this._preprocess) this.receiver.on('logger', (scope, message) => { - if (this.receiver.listenerCount('logger') === 1) { - debug('koishi:' + scope)(message) - } + debug('koishi:' + scope)(message) }) }