From 2659ac06c6864ef6815f7d77d2686b88e2654250 Mon Sep 17 00:00:00 2001 From: Frank Werner-Krippendorf Date: Mon, 9 Jul 2018 20:39:13 +0200 Subject: [PATCH] Update hblink.py --- hblink.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hblink.py b/hblink.py index e33eb4b..58ff4b8 100755 --- a/hblink.py +++ b/hblink.py @@ -99,6 +99,7 @@ def hblink_handler(_signal, _frame, _logger): class AMBE: def __init__(self, _config, _logger): self._CONFIG = _config + self._logger = _logger self._sock = socket.socket(socket.AF_INET,socket.SOCK_DGRAM) self._exp_ip = self._CONFIG['AMBE']['EXPORT_IP'] @@ -115,7 +116,7 @@ class AMBE: _frameType = (_bits & 0x30) >> 4 _voiceSeq = (_bits & 0x0f) _streamID = int_id(_data[16:20]) - logger.debug('(%s) seq: %d srcID: %d dstID: %d rptID: %d bits: %0X slot:%d callType: %d frameType: %d voiceSeq: %d streamID: %0X', + self._logger.debug('(%s) seq: %d srcID: %d dstID: %d rptID: %d bits: %0X slot:%d callType: %d frameType: %d voiceSeq: %d streamID: %0X', _client, _seq, _srcID, _dstID, _rptID, _bits, _slot, _callType, _frameType, _voiceSeq, _streamID ) #logger.debug('Frame 1:(%s)', self.ByteToHex(_data))