You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running OPA with status or decision console logging set to false produces a config error:
$ opa run -s --set decision_logs.console=false
error: config error: invalid decision_log config, must have a `service`, `plugin`, or `console` logging enabled
$ opa run -s --set status.console=false
error: config error: invalid status config, must have a `service`, `plugin`, or `console` logging specified
There's no reason that setting the default value explicitly should cause an error.
The text was updated successfully, but these errors were encountered:
Move the check for "emptiness" before validation and
injection of defaults, as there isn't a whole lot we
can do with a logging plugin that doesn't actually
log anything. Rather than error though, just return
nil to skip initialization of the plugin.
Fixesopen-policy-agent#4291
Signed-off-by: Anders Eknert <anders@eknert.com>
Move the check for "emptiness" before validation and
injection of defaults, as there isn't a whole lot we
can do with a logging plugin that doesn't actually
log anything. Rather than error though, just return
nil to skip initialization of the plugin.
Fixes#4291
Signed-off-by: Anders Eknert <anders@eknert.com>
Running OPA with status or decision console logging set to
false
produces a config error:There's no reason that setting the default value explicitly should cause an error.
The text was updated successfully, but these errors were encountered: