Standardise geniusheub error levels (#37512)

This commit is contained in:
RogerSelwyn 2020-07-05 19:11:07 +01:00 committed by GitHub
parent f0dda4f875
commit d79067db7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -181,14 +181,14 @@ class GeniusBroker:
await self.client.update() await self.client.update()
if self._connect_error: if self._connect_error:
self._connect_error = False self._connect_error = False
_LOGGER.warning("Connection to geniushub re-established") _LOGGER.info("Connection to geniushub re-established")
except ( except (
aiohttp.ClientResponseError, aiohttp.ClientResponseError,
aiohttp.client_exceptions.ClientConnectorError, aiohttp.client_exceptions.ClientConnectorError,
) as err: ) as err:
if not self._connect_error: if not self._connect_error:
self._connect_error = True self._connect_error = True
_LOGGER.warning( _LOGGER.error(
"Connection to geniushub failed (unable to update), message is: %s", "Connection to geniushub failed (unable to update), message is: %s",
err, err,
) )