flip debug back to true. Add timer reset as well to bridge debug

api
Simon 3 years ago
parent 7fb03aa839
commit 47ad817d3b

@ -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)

@ -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']:

Loading…
Cancel
Save

Powered by TurnKey Linux.