File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff 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 /**
You can’t perform that action at this time.
0 commit comments