mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
only log messages about notification methods
This commit is contained in:
parent
2b1d4ba9c1
commit
8f220837d0
@ -139,7 +139,7 @@ class MethodStorageClass:
|
|||||||
user_settings = {}
|
user_settings = {}
|
||||||
|
|
||||||
def collect(self, selected_classes=None):
|
def collect(self, selected_classes=None):
|
||||||
print('collecting')
|
logger.info('collecting notification methods')
|
||||||
current_method = inheritors(NotificationMethod) - IGNORED_NOTIFICATION_CLS
|
current_method = inheritors(NotificationMethod) - IGNORED_NOTIFICATION_CLS
|
||||||
|
|
||||||
# for testing selective loading is made available
|
# for testing selective loading is made available
|
||||||
@ -154,6 +154,7 @@ class MethodStorageClass:
|
|||||||
filtered_list[ref] = item
|
filtered_list[ref] = item
|
||||||
|
|
||||||
storage.liste = list(filtered_list.values())
|
storage.liste = list(filtered_list.values())
|
||||||
|
logger.info(f'found {len(storage.liste)} notification methods')
|
||||||
|
|
||||||
def get_usersettings(self, user):
|
def get_usersettings(self, user):
|
||||||
methods = []
|
methods = []
|
||||||
|
Loading…
Reference in New Issue
Block a user