From 8f220837d092c00b3b30d2705121b983a618c6c5 Mon Sep 17 00:00:00 2001 From: Matthias Date: Fri, 6 May 2022 01:25:22 +0200 Subject: [PATCH] only log messages about notification methods --- InvenTree/common/notifications.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/InvenTree/common/notifications.py b/InvenTree/common/notifications.py index fe6b195a4f..ef4de4fc61 100644 --- a/InvenTree/common/notifications.py +++ b/InvenTree/common/notifications.py @@ -139,7 +139,7 @@ class MethodStorageClass: user_settings = {} def collect(self, selected_classes=None): - print('collecting') + logger.info('collecting notification methods') current_method = inheritors(NotificationMethod) - IGNORED_NOTIFICATION_CLS # for testing selective loading is made available @@ -154,6 +154,7 @@ class MethodStorageClass: filtered_list[ref] = item storage.liste = list(filtered_list.values()) + logger.info(f'found {len(storage.liste)} notification methods') def get_usersettings(self, user): methods = []