From 96346f8a257d88631b4f6ac4d4fd4585d6c39bdb Mon Sep 17 00:00:00 2001 From: Swann Date: Sun, 11 Oct 2020 15:06:32 +0200 Subject: [PATCH] refactor: clean debug logs --- multi_user/bl_types/dump_anything.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/multi_user/bl_types/dump_anything.py b/multi_user/bl_types/dump_anything.py index f0edea5..e63a76e 100644 --- a/multi_user/bl_types/dump_anything.py +++ b/multi_user/bl_types/dump_anything.py @@ -47,7 +47,7 @@ def np_load_collection(dikt: dict, collection: bpy.types.CollectionProperty, att :type attributes: list """ if not dikt or len(collection) == 0: - logging.debug(f'Skipping collection') + logging.debug(f'Skipping collection {collection}') return if attributes is None: @@ -626,11 +626,11 @@ class Loader: for k in self._ordered_keys(dump.keys()): v = dump[k] if not hasattr(default.read(), k): - logging.debug(f"Load default, skipping {default} : {k}") + continue try: self._load_any(default.extend(k), v) except Exception as err: - logging.debug(f"Cannot load {k}: {err}") + logging.debug(f"Skipping {k}") @property def match_subset_all(self):