From db135a6dbc2f76548c0a2f50a7fdb3e54acd9662 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sun, 20 Dec 2020 22:18:13 +0100 Subject: [PATCH] policies/expression: fix missing ak_logger --- authentik/policies/expression/evaluator.py | 1 + 1 file changed, 1 insertion(+) diff --git a/authentik/policies/expression/evaluator.py b/authentik/policies/expression/evaluator.py index 11eb79100..6390188ac 100644 --- a/authentik/policies/expression/evaluator.py +++ b/authentik/policies/expression/evaluator.py @@ -28,6 +28,7 @@ class PolicyEvaluator(BaseEvaluator): def __init__(self, policy_name: str): super().__init__() self._messages = [] + self._context["ak_logger"] = get_logger(policy_name) self._context["ak_message"] = self.expr_func_message self._context["ip_address"] = ip_address self._context["ip_network"] = ip_network