Skip to content

Commit 7190191

Browse files
authored
Merge pull request #134 from mcode/debug-flag-bug
Debug flag bug
2 parents 641b6bb + 84525ab commit 7190191

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/application/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ function checkInputAndConfig(config, fromDate, toDate) {
3939
}
4040

4141
async function mcodeApp(Client, fromDate, toDate, pathToConfig, pathToRunLogs, debug, allEntries) {
42-
if (debug) logger.level = 'debug';
42+
logger.level = debug ? 'debug' : 'info';
4343
const config = getConfig(pathToConfig);
4444
checkInputAndConfig(config, fromDate, toDate);
4545

0 commit comments

Comments
 (0)