mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-09-02 03:12:34 +01:00
resorce resover: debug-print the path of found resource
This commit is contained in:
@@ -65,7 +65,8 @@ class ResourceResolver(object):
|
|||||||
self.logger.debug('Trying {}'.format(getter))
|
self.logger.debug('Trying {}'.format(getter))
|
||||||
result = getter.get(resource, *args, **kwargs)
|
result = getter.get(resource, *args, **kwargs)
|
||||||
if result is not None:
|
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
|
return result
|
||||||
if strict:
|
if strict:
|
||||||
raise ResourceError('{} could not be found'.format(resource))
|
raise ResourceError('{} could not be found'.format(resource))
|
||||||
|
Reference in New Issue
Block a user