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
1 changed files with 1 additions and 1 deletions

View File

@ -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: