policies: don't log context when policy returns None
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
d5329432fe
commit
cf40e5047e
|
@ -87,7 +87,7 @@ class PolicyEvaluator(BaseEvaluator):
|
||||||
LOGGER.warning(
|
LOGGER.warning(
|
||||||
"Expression policy returned None",
|
"Expression policy returned None",
|
||||||
src=expression_source,
|
src=expression_source,
|
||||||
req=self._context,
|
policy=self._filename,
|
||||||
)
|
)
|
||||||
policy_result.passing = False
|
policy_result.passing = False
|
||||||
if result:
|
if result:
|
||||||
|
|
Reference in New Issue