refactor: clean debug logs

This commit is contained in:
Swann
2020-10-11 15:06:32 +02:00
parent b661407952
commit 96346f8a25

View File

@ -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):