From 50d31cb1f75fdc8a8eb568874eab23c5c06bbf79 Mon Sep 17 00:00:00 2001 From: Pascal Hartig Date: Wed, 30 Aug 2023 03:15:44 -0700 Subject: [PATCH] Demote "Document not focused" error from Electron Summary: Comes from Electron. Will go away with PWA. Reviewed By: lblasa Differential Revision: D48778132 fbshipit-source-id: 0cecdc38e76b663315434aec995635afca2959dc --- desktop/flipper-common/src/utils/LoggerTailer.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/desktop/flipper-common/src/utils/LoggerTailer.tsx b/desktop/flipper-common/src/utils/LoggerTailer.tsx index 258eeaa9b..ef2ce9c42 100644 --- a/desktop/flipper-common/src/utils/LoggerTailer.tsx +++ b/desktop/flipper-common/src/utils/LoggerTailer.tsx @@ -74,6 +74,11 @@ function transformLogLevel(level: LoggerTypes, message: string) { if (message.includes('Watchman was not found in PATH')) { return 'warn'; } + + // Random Electron error, not actionable. + if (message.includes('Document is not focused')) { + return 'warn'; + } } return level;