Skip to content

Commit

Permalink
fix: improve white noise filtering in logs
Browse files Browse the repository at this point in the history
  • Loading branch information
noomorph committed May 23, 2024
1 parent d24f165 commit 109633c
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion src/file-handlers/log-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,23 @@ async function filterLog(src: string): Promise<string> {
input: fs.createReadStream(src).on('error', onError),
output: fs.createWriteStream(dest).on('error', onError),
include: ['Detox', 'ReactNativeJS', 'com.facebook.react.log', /\s[EF]\s/],
exclude: ['com.apple.network', '(CFNetwork)'],
exclude: [
'com.apple.BackBoard',
'com.apple.FrontBoard',
'com.apple.HealthKit',
'com.apple.Sleep',
'com.apple.WebKit',
'com.apple.activitykit',
'com.apple.containermanager',
'com.apple.defaults',
'com.apple.mobileassetd',
'com.apple.mobiletimer',
'com.apple.network',
'com.apple.runningboard',
'com.apple.sharing',
'com.apple.ttsasset',
'(CFNetwork)',
],
transform: (s) => s.replace(/^\S*\s*/, ''),
});

Expand Down

0 comments on commit 109633c

Please sign in to comment.