From de49d52ac82b52c684d4a7abe8e867c8f566fb18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sun, 9 Sep 2018 10:09:49 +0200 Subject: [PATCH] Improve logging of bus issue7681 review62331002 --- tryton/bus.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tryton/bus.py b/tryton/bus.py index 2f5b9f9e19..a23da9a1a6 100644 --- a/tryton/bus.py +++ b/tryton/bus.py @@ -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)