Squashed minor logging bug

Minor logging bug when master receives and unknown command. It tried to
log _radio_id, but in this case, we don’t know the radio ID since we
can’t parse the HBP PDU.
This commit is contained in:
Cort Buffington 2017-08-09 22:33:47 -05:00
parent 6584ba7431
commit bec229fbe7
1 changed files with 1 additions and 1 deletions

View File

@ -348,7 +348,7 @@ class HBSYSTEM(DatagramProtocol):
self._logger.warning('(%s) Client info from Radio ID that has not logged in: %s', self._system, int_id(_radio_id))
else:
self._logger.error('(%s) Unrecognized command from: %s. Packet: %s', self._system, int_id(_radio_id), ahex(_data))
self._logger.error('(%s) Unrecognized command. Raw HBP PDU: %s', self._system, ahex(_data))
# Aliased in __init__ to datagramReceived if system is a client
def client_datagramReceived(self, _data, (_host, _port)):