From 355d00c5c6bb8044c0ddea0af2c12e2e27b7650a Mon Sep 17 00:00:00 2001 From: Aaron Rosen Date: Fri, 22 Aug 2014 11:09:29 -0700 Subject: [PATCH] NSX: log request body to NSX as debug Previously we never logged the request body that we sent to NSX. This makes things hard to debug when issues arise as we don't actually log the body of the request that we made. This patch adds the body to our issue request log statement. Change-Id: I7d98e3d844ebe565fb5919aac3f9afd5b4040e69 Closes-bug: 1360394 --- neutron/plugins/vmware/api_client/request.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/neutron/plugins/vmware/api_client/request.py b/neutron/plugins/vmware/api_client/request.py index 3b856e9d55..bfc80fcbca 100644 --- a/neutron/plugins/vmware/api_client/request.py +++ b/neutron/plugins/vmware/api_client/request.py @@ -86,8 +86,10 @@ class ApiRequest(object): return error url = self._url - LOG.debug(_("[%(rid)d] Issuing - request %(conn)s"), - {'rid': self._rid(), 'conn': self._request_str(conn, url)}) + LOG.debug(_("[%(rid)d] Issuing - request url: %(conn)s " + "body: %(body)s"), + {'rid': self._rid(), 'conn': self._request_str(conn, url), + 'body': self._body}) issued_time = time.time() is_conn_error = False is_conn_service_unavail = False