From 190e17b50eca4c8ce262b8f0a7fc2b383feeca62 Mon Sep 17 00:00:00 2001 From: Simon Date: Sun, 2 May 2021 17:11:50 +0100 Subject: [PATCH] CONFIG not config --- bridge_master.py | 2 +- hblink.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bridge_master.py b/bridge_master.py index 4833fb3..38e2329 100755 --- a/bridge_master.py +++ b/bridge_master.py @@ -362,7 +362,7 @@ def kaReporting(): for system in systems: if CONFIG['SYSTEMS'][system]['MODE'] == 'OPENBRIDGE': if '_bcka' in CONFIG['SYSTEMS'][system] and CONFIG['SYSTEMS'][system]['_bcka'] < time() - 60: - logger.warning('(ROUTER) not sending to system %s as last keepalive was %s ago',system, config['SYSTEMS'][system]['_bcka'] - time()) + logger.warning('(ROUTER) not sending to system %s as last keepalive was %s ago',system, CONFIG['SYSTEMS'][system]['_bcka'] - time()) # run this every 10 seconds to trim orphaned stream ids def stream_trimmer_loop(): diff --git a/hblink.py b/hblink.py index d12ea71..bba1702 100755 --- a/hblink.py +++ b/hblink.py @@ -144,7 +144,7 @@ class OPENBRIDGE(DatagramProtocol): _packet = BCKA _packet = b''.join([_packet[:4], (hmac_new(self._config['PASSPHRASE'],_packet,sha1).digest())]) self.transport.write(_packet, (self._config['TARGET_IP'], self._config['TARGET_PORT'])) - logger.debug('(%s) *BridgeControl* sent Keep Alive',self._system) + logger.debug('(%s) *BridgeControl* sent KeepAlive',self._system) def send_bcsq(self,_tgid,_stream_id): _packet = b''.join([BCSQ, _tgid, _stream_id])