From 109633c6272ebe8fa2292333259cfcd3f83f553c Mon Sep 17 00:00:00 2001 From: Yaroslav Serhieiev Date: Thu, 23 May 2024 13:29:29 +0300 Subject: [PATCH] fix: improve white noise filtering in logs --- src/file-handlers/log-handler.ts | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/src/file-handlers/log-handler.ts b/src/file-handlers/log-handler.ts index de17fed..394a0a3 100644 --- a/src/file-handlers/log-handler.ts +++ b/src/file-handlers/log-handler.ts @@ -28,7 +28,23 @@ async function filterLog(src: string): Promise { 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*/, ''), });