Add API profiling logging of openstack list_volumes
The addition of the list_volumes API call was in review during the same time as the addition of the API profiling metrics, so we missed adding it. Correct that. Change-Id: Ie6b5806e5ac48585f8af19bed3257232c9974968
This commit is contained in:
parent
f9422d6342
commit
939a39feda
|
@ -696,7 +696,8 @@ class OpenStackAdapter(statemachine.Adapter):
|
|||
@cachetools.func.ttl_cache(maxsize=1, ttl=CACHE_TTL)
|
||||
def _listVolumes(self):
|
||||
try:
|
||||
return self._client.list_volumes()
|
||||
with Timer(self.log, 'API call list_volumes'):
|
||||
return self._client.list_volumes()
|
||||
except EndpointNotFound:
|
||||
return []
|
||||
|
||||
|
|
Loading…
Reference in New Issue