Skip to content

Commit

Permalink
hotfix-logger (#430)
Browse files Browse the repository at this point in the history
  • Loading branch information
maidh91 authored Nov 8, 2024
1 parent 23e98b5 commit 850d19c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/logger.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ class Logger {

_parseLevel (level) {
if (typeof level === 'number') return level
level = level.toUpperCase()
if (typeof level === 'string') level = level.toUpperCase()
if (level === 'OFF' || level === '0') return 0
if (level === 'ERR' || level === 'ERROR' || level === '1') return 1
if (level === 'INF' || level === 'INFO' || level === '2') return 2
Expand Down

0 comments on commit 850d19c

Please sign in to comment.