Skip to content

Commit 7b4e917

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

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
@@ -346,27 +346,27 @@ class Logger {
346346
}
347347

348348
trace(msgOrObj, fields) {
349-
this._log('trace', 10, msgOrObj, fields);
349+
this._log('trace', LEVELS.trace, msgOrObj, fields);
350350
}
351351

352352
debug(msgOrObj, fields) {
353-
this._log('debug', 20, msgOrObj, fields);
353+
this._log('debug', LEVELS.debug, msgOrObj, fields);
354354
}
355355

356356
info(msgOrObj, fields) {
357-
this._log('info', 30, msgOrObj, fields);
357+
this._log('info', LEVELS.info, msgOrObj, fields);
358358
}
359359

360360
warn(msgOrObj, fields) {
361-
this._log('warn', 40, msgOrObj, fields);
361+
this._log('warn', LEVELS.warn, msgOrObj, fields);
362362
}
363363

364364
error(msgOrObj, fields) {
365-
this._log('error', 50, msgOrObj, fields);
365+
this._log('error', LEVELS.error, msgOrObj, fields);
366366
}
367367

368368
fatal(msgOrObj, fields) {
369-
this._log('fatal', 60, msgOrObj, fields);
369+
this._log('fatal', LEVELS.fatal, msgOrObj, fields);
370370
}
371371
}
372372

0 commit comments

Comments
 (0)