From 02cd3ba560426aa5fca88dfab22453230a1b84ba Mon Sep 17 00:00:00 2001 From: Pritesh Nandgaonkar Date: Tue, 24 Jul 2018 07:40:30 -0700 Subject: [PATCH] Add warning if plugin is ignored due to gatekeeper Summary: Adds warning if plugin is ignored due to user not being the part of gatekeeper. As it will help us to better support our users Reviewed By: passy Differential Revision: D8952074 fbshipit-source-id: a5b995c778989deb08972081b19313303f8bfabb --- src/plugins/index.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/plugins/index.js b/src/plugins/index.js index 0df6e1373..e31cdde91 100644 --- a/src/plugins/index.js +++ b/src/plugins/index.js @@ -60,6 +60,11 @@ const exportedPlugins: Array>> = Array.from( (plugin.gatekeeper && !GK.get(plugin.gatekeeper)) || disabledPlugins.indexOf(plugin.name) > -1 ) { + console.warn( + 'Plugin %s will be ignored as user is not part of the gatekeeper "%s".', + plugin.name, + plugin.gatekeeper, + ); return null; } else { try {