From 56baf1f733ff6256719be4de418da2acb5b4d988 Mon Sep 17 00:00:00 2001 From: Jo¶rgen Karlsson Date: Fri, 19 Feb 2016 16:01:55 +0100 Subject: influxdb: log error when result posting fails MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I628e3919af56586a481708cb97ac4e38b7ccc5fa Signed-off-by: Jo¶rgen Karlsson (cherry picked from commit eaf476bd9a780de256c4cab37cc3632b14bafec3) --- yardstick/dispatcher/influxdb.py | 2 ++ 1 file changed, 2 insertions(+) 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) -- cgit 1.2.3-korg