summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJo¶rgen Karlsson <jorgen.w.karlsson@ericsson.com>2016-02-19 16:01:55 +0100
committerJo¶rgen Karlsson <jorgen.w.karlsson@ericsson.com>2016-02-19 16:04:34 +0100
commiteaf476bd9a780de256c4cab37cc3632b14bafec3 (patch)
treeb936a4bee892bc7ae688ff2f80cc0cfd2f20ce35
parenta3fc6bb48c4a77fcd495f99b7bf4d3bc0e11dcf3 (diff)
influxdb: log error when result posting fails
Change-Id: I628e3919af56586a481708cb97ac4e38b7ccc5fa Signed-off-by: Jo¶rgen Karlsson <jorgen.w.karlsson@ericsson.com>
-rw-r--r--yardstick/dispatcher/influxdb.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/yardstick/dispatcher/influxdb.py b/yardstick/dispatcher/influxdb.py
index ab6d40967..a9825fa35 100644
--- a/yardstick/dispatcher/influxdb.py
+++ b/yardstick/dispatcher/influxdb.py
@@ -160,6 +160,8 @@ class InfluxdbDispatcher(DispatchBase):
if res.status_code != 204:
LOG.error('Test result posting finished with status code'
' %d.' % res.status_code)
+ LOG.error(res.text)
+
except Exception as err:
LOG.exception('Failed to record result data: %s',
err)