refactor: clean debug logs

This commit is contained in:
Swann 2020-10-11 15:06:32 +02:00
parent b661407952
commit 96346f8a25
No known key found for this signature in database
GPG Key ID: E1D3641A7C43AACB

View File

@ -47,7 +47,7 @@ def np_load_collection(dikt: dict, collection: bpy.types.CollectionProperty, att
:type attributes: list :type attributes: list
""" """
if not dikt or len(collection) == 0: if not dikt or len(collection) == 0:
logging.debug(f'Skipping collection') logging.debug(f'Skipping collection {collection}')
return return
if attributes is None: if attributes is None:
@ -626,11 +626,11 @@ class Loader:
for k in self._ordered_keys(dump.keys()): for k in self._ordered_keys(dump.keys()):
v = dump[k] v = dump[k]
if not hasattr(default.read(), k): if not hasattr(default.read(), k):
logging.debug(f"Load default, skipping {default} : {k}") continue
try: try:
self._load_any(default.extend(k), v) self._load_any(default.extend(k), v)
except Exception as err: except Exception as err:
logging.debug(f"Cannot load {k}: {err}") logging.debug(f"Skipping {k}")
@property @property
def match_subset_all(self): def match_subset_all(self):