policies/expression: fix missing ak_logger

This commit is contained in:
Jens Langhammer 2020-12-20 22:18:13 +01:00
parent 8d784afcd1
commit fc4f9733d1
1 changed files with 1 additions and 0 deletions

View File

@ -21,6 +21,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