1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-01-19 04:21:17 +00:00

resorce resover: debug-print the path of found resource

This commit is contained in:
Sergei Trofimov 2015-06-30 10:50:49 +01:00
parent 34a604f4fc
commit df6d1f1c2b

View File

@ -65,7 +65,8 @@ class ResourceResolver(object):
self.logger.debug('Trying {}'.format(getter))
result = getter.get(resource, *args, **kwargs)
if result is not None:
self.logger.debug('Resource {} found using {}'.format(resource, getter))
self.logger.debug('Resource {} found using {}:'.format(resource, getter))
self.logger.debug('\t{}'.format(result))
return result
if strict:
raise ResourceError('{} could not be found'.format(resource))