From ae19d1c9a12cb2d728e458ee9769bf0044dd1644 Mon Sep 17 00:00:00 2001 From: FoxxMD Date: Thu, 15 Jul 2021 17:10:31 -0400 Subject: [PATCH] Fix log check --- src/App.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/App.ts b/src/App.ts index cb391a6..0aaeece 100644 --- a/src/App.ts +++ b/src/App.ts @@ -71,11 +71,10 @@ export class App { this.apiLimitWarning = argParseInt(apiLimitWarning); this.wikiLocation = wikiConfig; - const aLogger = winston.loggers.get('default'); - if(aLogger === undefined) { + if(!winston.loggers.has('default')) { this.logger = createDefaultLogger(options); } else { - this.logger = aLogger; + this.logger = winston.loggers.get('default'); } if (this.dryRun) {