Skip to content

Commit f0e9949

Browse files
committed
Quote hostname in logging
1 parent 4ccaffe commit f0e9949

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

robots.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def connect_mqtt(self):
2424
mqtt_client.username_pw_set(mqtt_config['username'],
2525
mqtt_config['password'])
2626
mqtt_client.connect(host=mqtt_config['host'])
27-
logger.info("MQTT connecting to %s", mqtt_config['host'])
27+
logger.info("MQTT connecting to '%s'", mqtt_config['host'])
2828
mqtt_client.subscribe('/robot/+/$online$')
2929
mqtt_client.subscribe('/robot/+/$name$')
3030

0 commit comments

Comments
 (0)