From a74919dd6116726e319bb5018e684e373dc0667b Mon Sep 17 00:00:00 2001 From: Simon Date: Sun, 13 Feb 2022 15:31:43 +0000 Subject: [PATCH] limit wrong ver logging --- hblink.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hblink.py b/hblink.py index 5494a93..2f13631 100755 --- a/hblink.py +++ b/hblink.py @@ -234,7 +234,9 @@ class OPENBRIDGE(DatagramProtocol): if _packet[:3] == DMR: # DMRData -- encapsulated DMR data frame if _packet[:4] == DMRD: if self._config['VER'] > 1: - logger.warning('(%s) *ProtoControl* Version 1 protocol prohibited by PROTO_VER, Ver: %s',self._system,self._config['VER']) + if _stream_id not in self._laststrid: + logger.warning('(%s) *ProtoControl* Version 1 protocol prohibited by PROTO_VER, Ver: %s',self._system,self._config['VER']) + self._laststrid.append(_stream_id) self.send_bcve() return _data = _packet[:53]