Commit a6f9b29d authored by Olivier Kaufmann's avatar Olivier Kaufmann
Browse files

Fixes logging setup bug

Showing with 2 additions and 2 deletions
+2 -2
...@@ -59,7 +59,7 @@ def setup_loggers(mqtt=True): ...@@ -59,7 +59,7 @@ def setup_loggers(mqtt=True):
mqtt_settings = MQTT_LOGGING_CONFIG.copy() mqtt_settings = MQTT_LOGGING_CONFIG.copy()
mqtt_soh_logging_level = mqtt_settings.pop('soh_logging_level', logging.DEBUG) mqtt_soh_logging_level = mqtt_settings.pop('soh_logging_level', logging.DEBUG)
[mqtt_settings.pop(i, None) for i in ['client_id', 'exec_topic', 'data_topic', 'soh_topic', 'data_logging_level', [mqtt_settings.pop(i, None) for i in ['client_id', 'exec_topic', 'data_topic', 'soh_topic', 'data_logging_level',
'soh_logging_level']] 'exec_logging_level']]
mqtt_settings.update({'topic': MQTT_LOGGING_CONFIG['soh_topic']}) mqtt_settings.update({'topic': MQTT_LOGGING_CONFIG['soh_topic']})
# TODO: handle the case of MQTT broker down or temporarily unavailable # TODO: handle the case of MQTT broker down or temporarily unavailable
try: try:
......
...@@ -1231,7 +1231,7 @@ print('Version:', VERSION) ...@@ -1231,7 +1231,7 @@ print('Version:', VERSION)
platform, on_pi = get_platform() platform, on_pi = get_platform()
if on_pi: if on_pi:
print(colored(f'\u2611 Running on {platform} platform', 'green')) print(colored(f'\u2611 Running on {platform}', 'green'))
# TODO: check model for compatible platforms (exclude Raspberry Pi versions that are not supported...) # TODO: check model for compatible platforms (exclude Raspberry Pi versions that are not supported...)
# and emit a warning otherwise # and emit a warning otherwise
if not arm64_imports: if not arm64_imports:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment