policies: don't log context when policy returns None

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2022-11-30 14:43:47 +02:00
parent d5329432fe
commit cf40e5047e

View file

@ -87,7 +87,7 @@ class PolicyEvaluator(BaseEvaluator):
LOGGER.warning(
"Expression policy returned None",
src=expression_source,
req=self._context,
policy=self._filename,
)
policy_result.passing = False
if result: