File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -3,22 +3,22 @@ import configuration from './configuration'
3
3
4
4
const logger = {
5
5
debug ( ...args ) {
6
- if ( [ 'debug' ] . includes ( configuration . logLevel ) ) {
6
+ if ( [ 'debug' ] . indexOf ( configuration . logLevel ) !== - 1 ) {
7
7
console . debug ( ...args )
8
8
}
9
9
} ,
10
10
log ( ...args ) {
11
- if ( [ 'debug' , 'log' ] . includes ( configuration . logLevel ) ) {
11
+ if ( [ 'debug' , 'log' ] . indexOf ( configuration . logLevel ) !== - 1 ) {
12
12
console . log ( ...args )
13
13
}
14
14
} ,
15
15
warn ( ...args ) {
16
- if ( [ 'debug' , 'log' , 'warn' ] . includes ( configuration . logLevel ) ) {
16
+ if ( [ 'debug' , 'log' , 'warn' ] . indexOf ( configuration . logLevel ) !== - 1 ) {
17
17
console . warn ( ...args )
18
18
}
19
19
} ,
20
20
error ( ...args ) {
21
- if ( [ 'debug' , 'log' , 'warn' , 'error' ] . includes ( configuration . logLevel ) ) {
21
+ if ( [ 'debug' , 'log' , 'warn' , 'error' ] . indexOf ( configuration . logLevel ) !== - 1 ) {
22
22
console . error ( ...args )
23
23
}
24
24
} ,
You can’t perform that action at this time.
0 commit comments