Skip to content

Commit 15b0eb6

Browse files
m1gahansemannn
authored andcommitted
fix: allow ignoreLog to be a single string (#14116)
1 parent d4abe90 commit 15b0eb6

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

android/cli/hooks/run.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,11 @@ exports.init = function (logger, config, cli) {
268268
}
269269

270270
// ignore some Android logs in info log level
271-
if(ignoreLog.some(ignoreItem=>line.includes(ignoreItem))){
271+
if(typeofignoreLog==='string'){
272+
if(line.includes(ignoreLog)){
273+
return;
274+
}
275+
}elseif(ignoreLog.some(ignoreItem=>line.includes(ignoreItem))){
272276
return;
273277
}
274278

iphone/cli/hooks/run.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,11 @@ exports.init = function (logger, config, cli) {
7575
}
7676

7777
// ignore logs from cli ignoreLog
78-
if(ignoreLog.some(ignoreItem=>line.includes(ignoreItem))){
78+
if(typeofignoreLog==='string'){
79+
if(line.includes(ignoreLog)){
80+
return;
81+
}
82+
}elseif(ignoreLog.some(ignoreItem=>line.includes(ignoreItem))){
7983
return;
8084
}
8185

0 commit comments

Comments
 (0)
close