diff --git a/notifications_utils/logging.py b/notifications_utils/logging.py index e2e0fef6..29ab0ed7 100644 --- a/notifications_utils/logging.py +++ b/notifications_utils/logging.py @@ -155,7 +155,7 @@ def get_handler(app): class AppNameFilter(logging.Filter): def __init__(self, app_name): - self.service = AppNameFilter.service_map.get(app_name, 'test') + self.service = _service_map.get(app_name, 'test') def filter(self, record): record.application = self.service