add debugging to the feature detection system

This commit is contained in:
Jakob Ketterl 2021-12-01 19:22:48 +01:00
parent dcdfe7969a
commit 9c28143dfb

View File

@ -131,12 +131,14 @@ class FeatureDetector(object):
if cache.has(requirement):
return cache.get(requirement)
logger.debug("performing feature check for %s", requirement)
method = self._get_requirement_method(requirement)
result = False
if method is not None:
result = method()
else:
logger.error("detection of requirement {0} not implement. please fix in code!".format(requirement))
logger.debug("feature check for %s complete. result: %s", requirement, result)
cache.set(requirement, result)
return result