From 47ad817d3b0c4dfa4931713403516414895b3930 Mon Sep 17 00:00:00 2001 From: Simon Date: Mon, 19 Jun 2023 18:14:13 +0100 Subject: [PATCH] flip debug back to true. Add timer reset as well to bridge debug --- bridge_master.py | 2 ++ config.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/bridge_master.py b/bridge_master.py index afc4f12..c5e7cae 100644 --- a/bridge_master.py +++ b/bridge_master.py @@ -391,6 +391,7 @@ def statTrimmer(): #Debug and fix bridge table issues. def bridgeDebug(): logger.info('(BRIDGEDEBUG) Running bridge debug') + _rst_time = time() statroll = 0 for system in CONFIG['SYSTEMS']: bridgeroll = 0 @@ -431,6 +432,7 @@ def bridgeDebug(): if CONFIG['SYSTEMS'][system]['MODE'] == 'MASTER': if _entry['SYSTEM'] == system: _entry['ACTIVE'] = False + _entry['TIMER'] = _rst_time logger.info('(BRIDGEDEBUG) The server currently has %s STATic bridges',statroll) diff --git a/config.py b/config.py index f845177..8a17948 100755 --- a/config.py +++ b/config.py @@ -148,7 +148,7 @@ def build_config(_config_file): 'SERVER_ID': config.getint(section, 'SERVER_ID', fallback=0).to_bytes(4, 'big'), 'DATA_GATEWAY': config.getboolean(section, 'DATA_GATEWAY', fallback=False), 'VALIDATE_SERVER_IDS': config.getboolean(section, 'VALIDATE_SERVER_IDS', fallback=True), - 'DEBUG_BRIDGES' : config.getboolean(section, 'DEBUG_BRIDGES', fallback=False) + 'DEBUG_BRIDGES' : config.getboolean(section, 'DEBUG_BRIDGES', fallback=True) }) if not CONFIG['GLOBAL']['ANNOUNCEMENT_LANGUAGES']: