Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion src/logs/log-buffer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@

const noop = () => {};
const DEFAULT_SYNC_DELAY = 500;
const IOS_CONNECTION_REGEX = /^Connection (?:\d+|for <APSConnection)/;

export class LogBuffer implements StepLogRecorder {
private readonly _emitter: Emitter;
Expand Down Expand Up @@ -193,7 +194,17 @@
}

if (entry.level >= Level.ERROR) {
return !entry.subsystem.startsWith('com.apple.'); // && !entry.msg.includes('(CFNetwork)');
if (!entry.subsystem && !entry.category) {
if (IOS_CONNECTION_REGEX.test(entry.msg)) {

Check failure on line 198 in src/logs/log-buffer.ts

View workflow job for this annotation

GitHub Actions / Sanity

Unexpected `if` as the only statement in a `if` block without `else`
return false;
}
}

if (entry.subsystem.startsWith('com.apple.')) {
return false;
}

return true;
}

return false;
Expand Down
Loading