File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import { config } from '@global/config';
88 */
99export const printIonWarning = ( message : string , ...params : any [ ] ) => {
1010 const logLevel = config . get ( 'logLevel' , 'WARN' ) ;
11- if ( logLevel === 'WARN' || logLevel === 'ERROR' ) {
11+ if ( [ 'WARN' , 'ERROR' ] . includes ( logLevel ) ) {
1212 return console . warn ( `[Ionic Warn]: ${ message } ` , ...params ) ;
1313 }
1414} ;
@@ -20,9 +20,9 @@ export const printIonWarning = (message: string, ...params: any[]) => {
2020 * @param message - The string message to be logged to the console.
2121 * @param params - Additional arguments to supply to the console.error.
2222 */
23- export const printIonError = ( message : string , ...params : any ) => {
23+ export const printIonError = ( message : string , ...params : any [ ] ) => {
2424 const logLevel = config . get ( 'logLevel' , 'ERROR' ) ;
25- if ( logLevel === 'ERROR' ) {
25+ if ( [ 'ERROR' ] . includes ( logLevel ) ) {
2626 return console . error ( `[Ionic Error]: ${ message } ` , ...params ) ;
2727 }
2828} ;
You can’t perform that action at this time.
0 commit comments