We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9c5155 commit 40d8b40Copy full SHA for 40d8b40
1 file changed
lib/logger.js
@@ -218,12 +218,12 @@ class Logger {
218
_setLogMethods() {
219
const levelValue = this._levelValue;
220
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;
+ if (levelValue > LEVELS.trace) this.trace = noop;
+ if (levelValue > LEVELS.debug) this.debug = noop;
+ if (levelValue > LEVELS.info) this.info = noop;
+ if (levelValue > LEVELS.warn) this.warn = noop;
+ if (levelValue > LEVELS.error) this.error = noop;
+ if (levelValue > LEVELS.fatal) this.fatal = noop;
227
}
228
229
/**
0 commit comments