mirror of
https://github.com/FoxxMD/context-mod.git
synced 2026-04-19 03:00:07 -04:00
Fix log check
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user