Fix log check

This commit is contained in:
FoxxMD
2021-07-15 17:10:31 -04:00
parent f9c7cf433e
commit ae19d1c9a1

View File

@@ -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) {