From cf40e5047e3bc2b6223d9ed6eedd1ecb5e11678c Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Wed, 30 Nov 2022 14:43:47 +0200 Subject: [PATCH] policies: don't log context when policy returns None Signed-off-by: Jens Langhammer --- authentik/policies/expression/evaluator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/authentik/policies/expression/evaluator.py b/authentik/policies/expression/evaluator.py index bb04d1f15..bf1b2b209 100644 --- a/authentik/policies/expression/evaluator.py +++ b/authentik/policies/expression/evaluator.py @@ -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: