From af8fbf2b46a4f9abfd24f8e0b337512e780eba92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20B=C3=BCchele?= Date: Tue, 9 Jul 2019 02:58:57 -0700 Subject: [PATCH] remove warning for GKs Summary: As we are trying to clean the console from any non-important logs, I am removing the warnings about GK'd plugins. This information can be seen on the "Plugin not showing" panel. Reviewed By: jknoxville Differential Revision: D16148408 fbshipit-source-id: 5aeffa6e82524aacb050385ba86439654c07c741 --- src/dispatcher/plugins.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/dispatcher/plugins.js b/src/dispatcher/plugins.js index 84aadbe03..5f6e5532d 100644 --- a/src/dispatcher/plugins.js +++ b/src/dispatcher/plugins.js @@ -122,11 +122,6 @@ export const checkGK = (gatekeepedPlugins: Array) => ( const result = GK.get(plugin.gatekeeper); if (!result) { gatekeepedPlugins.push(plugin); - console.warn( - 'Plugin %s will be ignored as user is not part of the gatekeeper "%s".', - plugin.name, - plugin.gatekeeper, - ); } return result; };