Add callsign to timeout message

This commit is contained in:
phl0 2016-09-01 17:41:37 +02:00
parent 43290268ff
commit 587c419316
No known key found for this signature in database
GPG Key ID: 48EA1E640798CA9A
1 changed files with 1 additions and 1 deletions

View File

@ -183,7 +183,7 @@ class HBMASTER(DatagramProtocol):
_this_client = self._clients[client]
# Check to see if any of the clients have been quiet (no ping) longer than allowed
if _this_client['LAST_PING']+CONFIG['GLOBAL']['PING_TIME']*CONFIG['GLOBAL']['MAX_MISSED'] < time():
logger.info('(%s) Client %s has timed out', self._master, _this_client['RADIO_ID'])
logger.info('(%s) Client %s (%s) has timed out', self._master, _this_client['CALLSIGN'], _this_client['RADIO_ID'])
# Remove any timed out clients from the configuration
del CONFIG['SYSTEMS'][self._master]['CLIENTS'][client]