Skip to content

Commit 0249710

Browse files
committed
fix: improve ios log filtering
1 parent 302f075 commit 0249710

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/logs/log-buffer.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,17 @@ export class LogBuffer implements StepLogRecorder {
193193
}
194194

195195
if (entry.level >= Level.ERROR) {
196-
return !entry.subsystem.startsWith('com.apple.'); // && !entry.msg.includes('(CFNetwork)');
196+
if (!entry.subsystem && !entry.category) {
197+
if (/^Connection (?:\d+|for <APSConnection)/.test(entry.msg)) {
198+
return false;
199+
}
200+
}
201+
202+
if (entry.subsystem.startsWith('com.apple.')) {
203+
return false;
204+
}
205+
206+
return true;
197207
}
198208

199209
return false;

0 commit comments

Comments
 (0)