Skip to content

Commit

Permalink
fix double logging in development mode
Browse files Browse the repository at this point in the history
  • Loading branch information
aeifn committed Nov 25, 2020
1 parent fcd4aa4 commit 2da576f
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions bin/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,6 @@ if (require.main !== module) { // If run.js is required by another module (for e
makeDir.sync(logPath);
log4js.configure('./log4js.json', { cwd: logPath });

if (env === 'development') {
log4js.addAppender(log4js.appenders.stdout()); // In dev write all logs also to the terminal
}

const appName = path.parse(argv.script).name;
const logger = log4js.getLogger(appName);

Expand Down

0 comments on commit 2da576f

Please sign in to comment.