add debugging to the feature detection system
This commit is contained in:
parent
dcdfe7969a
commit
9c28143dfb
@ -131,12 +131,14 @@ class FeatureDetector(object):
|
|||||||
if cache.has(requirement):
|
if cache.has(requirement):
|
||||||
return cache.get(requirement)
|
return cache.get(requirement)
|
||||||
|
|
||||||
|
logger.debug("performing feature check for %s", requirement)
|
||||||
method = self._get_requirement_method(requirement)
|
method = self._get_requirement_method(requirement)
|
||||||
result = False
|
result = False
|
||||||
if method is not None:
|
if method is not None:
|
||||||
result = method()
|
result = method()
|
||||||
else:
|
else:
|
||||||
logger.error("detection of requirement {0} not implement. please fix in code!".format(requirement))
|
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)
|
cache.set(requirement, result)
|
||||||
return result
|
return result
|
||||||
|
Loading…
Reference in New Issue
Block a user