Commit 90992fd0 authored by Olivier Kaufmann's avatar Olivier Kaufmann
Browse files

Fixes logging setup

Showing with 1 addition and 1 deletion
+1 -1
......@@ -49,7 +49,7 @@ def setup_loggers(mqtt=True):
if logging_to_console:
msg_logger.addHandler(logging.StreamHandler())
if mqtt:
mqtt_msg_handler = MQTTHandler(MQTT_LOGGING_CONFIG['hostname'], MQTT_LOGGING_CONFIG['topic'])
mqtt_msg_handler = MQTTHandler(MQTT_LOGGING_CONFIG['hostname'], MQTT_LOGGING_CONFIG['msg_topic'])
mqtt_msg_handler.setLevel(logging_level)
mqtt_msg_handler.setFormatter(msg_formatter)
msg_logger.addHandler(mqtt_msg_handler)
......
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