From: Jo¶rgen Karlsson Date: Fri, 19 Feb 2016 15:01:55 +0000 (+0100) Subject: influxdb: log error when result posting fails X-Git-Tag: colorado.1.0~221 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=eaf476bd9a780de256c4cab37cc3632b14bafec3;p=yardstick.git influxdb: log error when result posting fails Change-Id: I628e3919af56586a481708cb97ac4e38b7ccc5fa Signed-off-by: Jo¶rgen Karlsson --- 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)