From bec229fbe71e014c41565054d9f50c3f74d7835c Mon Sep 17 00:00:00 2001 From: Cort Buffington Date: Wed, 9 Aug 2017 22:33:47 -0500 Subject: [PATCH] Squashed minor logging bug MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- hblink.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hblink.py b/hblink.py index 1600920..f7d4037 100755 --- a/hblink.py +++ b/hblink.py @@ -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)):