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:
parent
34a604f4fc
commit
df6d1f1c2b
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user