Message skip message logged in debug mode to prevent log pollution

This commit is contained in:
Fabio Manganiello 2018-10-16 10:26:10 +02:00
parent 4d3d8ddd34
commit 2eccd41420

View file

@ -50,7 +50,7 @@ class Bus(object):
while not stop:
msg = self.get()
if msg.timestamp and time.time() - msg.timestamp > self._MSG_EXPIRY_TIMEOUT:
logger.info('{} seconds old message on the bus expired, ignoring it: {}'
logger.debug('{} seconds old message on the bus expired, ignoring it: {}'
.format(int(time.time()-msg.timestamp), msg))
continue