Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
davehorton committed Nov 16, 2024
1 parent 0f28f45 commit 6155186
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,9 @@ const monInterval = setInterval(async() => {
logger.level = systemInformation.log_level;
}
} catch (err) {
if (err.code === 'ER_NO_SUCH_TABLE' && process.env.NODE_ENV === 'test') {
if (process.env.NODE_ENV === 'test') {
clearInterval(monInterval);
logger.error('all tests complete');
}
else logger.error({err}, 'Error checking system log level in database');
}
Expand Down

0 comments on commit 6155186

Please sign in to comment.