Improve logging of bus
issue7681 review62331002
This commit is contained in:
1 parent
801ede5790
commit
de49d52ac8
1 file changed
+3
-1
+3
-1
@@ -49,6 +49,8 @@ def _listen(connection):
|
||||
'channels': CHANNELS,
|
||||
}).encode('utf-8'),
|
||||
headers=headers)
|
||||
logger.info('poll channels %s with last message %s',
|
||||
CHANNELS, last_message)
|
||||
try:
|
||||
response = urlopen(request, timeout=bus_timeout)
|
||||
wait = 1
|
||||
@@ -56,7 +58,7 @@ def _listen(connection):
|
||||
wait = 1
|
||||
continue
|
||||
except Exception as error:
|
||||
logger.debug(
|
||||
logger.error(
|
||||
"An exception occured while connecting to the bus."
|
||||
"Sleeping for %s seconds",
|
||||
wait, exc_info=error)
|
||||
|
||||
Reference in new issue
Block a user