aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJo¶rgen Karlsson <jorgen.w.karlsson@ericsson.com>2016-02-19 16:01:55 +0100
committerJörgen Karlsson <jorgen.w.karlsson@ericsson.com>2016-02-19 16:15:23 +0000
commit56baf1f733ff6256719be4de418da2acb5b4d988 (patch)
treec6a4a57fed09a9437c8576cf3006cc7182880671
parent649a6909f3d53641209c03916d68b9ebf620dc46 (diff)
influxdb: log error when result posting fails
Change-Id: I628e3919af56586a481708cb97ac4e38b7ccc5fa Signed-off-by: Jo¶rgen Karlsson <jorgen.w.karlsson@ericsson.com> (cherry picked from commit eaf476bd9a780de256c4cab37cc3632b14bafec3)
-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)