GK failing log message
Summary: When a plugin has no gatekeeper defined, an incorrect warning was logged, saying that if fails the gatekeeper "undeinfed" Reviewed By: jknoxville Differential Revision: D13275803 fbshipit-source-id: 9ae5ed55031cc6a636c7c5ffa23bdd059a8ed35f
This commit is contained in:
committed by
Facebook Github Bot
parent
3183e56560
commit
34e75c3c5f
@@ -82,7 +82,7 @@ export function getDynamicPlugins() {
|
|||||||
|
|
||||||
export function checkGK(plugin: PluginDefinition): boolean {
|
export function checkGK(plugin: PluginDefinition): boolean {
|
||||||
const result = plugin.gatekeeper && !GK.get(plugin.gatekeeper);
|
const result = plugin.gatekeeper && !GK.get(plugin.gatekeeper);
|
||||||
if (!result) {
|
if (plugin.gatekeeper && !result) {
|
||||||
console.warn(
|
console.warn(
|
||||||
'Plugin %s will be ignored as user is not part of the gatekeeper "%s".',
|
'Plugin %s will be ignored as user is not part of the gatekeeper "%s".',
|
||||||
plugin.name,
|
plugin.name,
|
||||||
|
|||||||
Reference in New Issue
Block a user