diff options
author | Federico Ressi <fressi@redhat.com> | 2021-09-01 09:28:03 +0200 |
---|---|---|
committer | Federico Ressi <fressi@redhat.com> | 2022-02-04 17:42:55 +0000 |
commit | afb0f774841d30dcae9c074d524e7fa9be840678 (patch) | |
tree | 67016693e9ae5ff7751ee4c764634efb1eaea43f | |
parent | bdaeadeb64fc22bd40434d29e5fb338ef827edca (diff) | |
download | nova-afb0f774841d30dcae9c074d524e7fa9be840678.tar.gz |
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
-rw-r--r-- | nova/api/openstack/wsgi.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/nova/api/openstack/wsgi.py b/nova/api/openstack/wsgi.py index e64b4a2016..1d17ce1c9f 100644 --- a/nova/api/openstack/wsgi.py +++ b/nova/api/openstack/wsgi.py @@ -538,6 +538,12 @@ class Resource(wsgi.Application): with ResourceExceptionHandler(): action_result = self.dispatch(meth, request, action_args) 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 if not response: |