From 31ace3bd092ce8135644f6a1f46b0bd168f1a428 Mon Sep 17 00:00:00 2001 From: Anton Nikolaev Date: Tue, 15 Dec 2020 09:28:58 -0800 Subject: [PATCH] Do not show warnings for unhandled messages Summary: Flipper receives a lot of messages which cannot be handled when plugins unbundled. Showing them as warnings is un-actionable with such big amount, so I disabled them. Reviewed By: mweststrate Differential Revision: D25557790 fbshipit-source-id: 1a0bc3df2848b194b72ea6d775ffabe416672fee --- desktop/app/src/Client.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desktop/app/src/Client.tsx b/desktop/app/src/Client.tsx index 13483049e..e14a955ec 100644 --- a/desktop/app/src/Client.tsx +++ b/desktop/app/src/Client.tsx @@ -487,7 +487,7 @@ export default class Client extends EventEmitter { } } } - if (!handled) { + if (!handled && !isProduction()) { console.warn(`Unhandled message ${params.api}.${params.method}`); } }