Skip to content

Commit

Permalink
Fix for issue with setting the loglevel via numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
knsv committed Sep 12, 2022
1 parent ca5fbb7 commit 885e69c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ export const setLogLevel = function (level: keyof typeof LEVELS | number | strin
if (level in LEVELS) {
numericLevel = LEVELS[level as keyof typeof LEVELS];
}
} else if (typeof level === 'number') {
numericLevel = level;
}
log.trace = () => {};
log.debug = () => {};
Expand Down

0 comments on commit 885e69c

Please sign in to comment.