From 02d601d6323074f89951ccd4074da2ed334270a3 Mon Sep 17 00:00:00 2001 From: Kazuhiro Sera Date: Wed, 25 Aug 2021 06:49:28 +0900 Subject: [PATCH] Fix #1027 by removing unnecessary lines of code in ExpressReceiver (#1076) --- src/receivers/ExpressReceiver.ts | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/receivers/ExpressReceiver.ts b/src/receivers/ExpressReceiver.ts index 6a541c19a..1be92d21e 100644 --- a/src/receivers/ExpressReceiver.ts +++ b/src/receivers/ExpressReceiver.ts @@ -89,13 +89,6 @@ export default class ExpressReceiver implements Receiver { this.logger.setLevel(logLevel); } - if (typeof logger !== 'undefined') { - this.logger = logger; - } else { - this.logger = new ConsoleLogger(); - this.logger.setLevel(logLevel); - } - const expressMiddleware: RequestHandler[] = [ verifySignatureAndParseRawBody(this.logger, signingSecret), respondToSslCheck,