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
This commit is contained in:
committed by
Facebook Github Bot
parent
df795a3b88
commit
af8fbf2b46
@@ -122,11 +122,6 @@ export const checkGK = (gatekeepedPlugins: Array<PluginDefinition>) => (
|
|||||||
const result = GK.get(plugin.gatekeeper);
|
const result = GK.get(plugin.gatekeeper);
|
||||||
if (!result) {
|
if (!result) {
|
||||||
gatekeepedPlugins.push(plugin);
|
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;
|
return result;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user