diff --git a/homeassistant/components/influxdb/__init__.py b/homeassistant/components/influxdb/__init__.py index fbc1b16a4fe..0289dc63d88 100644 --- a/homeassistant/components/influxdb/__init__.py +++ b/homeassistant/components/influxdb/__init__.py @@ -321,14 +321,12 @@ class InfluxThread(threading.Thread): _LOGGER.debug("Wrote %d events", len(json)) break - except (exceptions.InfluxDBClientError, - requests.exceptions.RequestException, - IOError): + except (exceptions.InfluxDBClientError, IOError) as err: if retry < self.max_tries: time.sleep(RETRY_DELAY) else: if not self.write_errors: - _LOGGER.exception("Write error") + _LOGGER.error("Write error: %s", err) self.write_errors += len(json) def run(self):