Debug Nova APIs call failures

This should help finding out cause of failures happening
when performing API requests by reading the log file

Change-Id: I02e531c2aaaccae99da9a21ee9268f6fdd0efb3e
This commit is contained in:
Federico Ressi 2021-09-01 09:28:03 +02:00
parent bdaeadeb64
commit afb0f77484
1 changed files with 6 additions and 0 deletions

View File

@ -538,6 +538,12 @@ class Resource(wsgi.Application):
with ResourceExceptionHandler(): with ResourceExceptionHandler():
action_result = self.dispatch(meth, request, action_args) action_result = self.dispatch(meth, request, action_args)
except Fault as ex: except Fault as ex:
LOG.debug(f'Request method failure captured:\n'
f' request: {request}\n'
f' method: {meth}\n'
f' exception: {ex}\n'
f' action_args: {action_args}\n',
exc_info=1)
response = ex response = ex
if not response: if not response: