Skip to content

Commit 40d8b40

Browse files
Update lib/logger.js
Co-authored-by: Chemi Atlow <[email protected]>
1 parent d9c5155 commit 40d8b40

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/logger.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -218,12 +218,12 @@ class Logger {
218218
_setLogMethods() {
219219
const levelValue = this._levelValue;
220220

221-
if (levelValue > 10) this.trace = noop;
222-
if (levelValue > 20) this.debug = noop;
223-
if (levelValue > 30) this.info = noop;
224-
if (levelValue > 40) this.warn = noop;
225-
if (levelValue > 50) this.error = noop;
226-
if (levelValue > 60) this.fatal = noop;
221+
if (levelValue > LEVELS.trace) this.trace = noop;
222+
if (levelValue > LEVELS.debug) this.debug = noop;
223+
if (levelValue > LEVELS.info) this.info = noop;
224+
if (levelValue > LEVELS.warn) this.warn = noop;
225+
if (levelValue > LEVELS.error) this.error = noop;
226+
if (levelValue > LEVELS.fatal) this.fatal = noop;
227227
}
228228

229229
/**

0 commit comments

Comments
 (0)