diff --git a/mqtt2log.py b/mqtt2log.py index 3ced572..72f003a 100755 --- a/mqtt2log.py +++ b/mqtt2log.py @@ -13,7 +13,7 @@ MQTT_CLIENT_ID = 'MQTT_Logfile_Bridge' def on_connect(client, userdata, flags, reason_code, properties): """ The callback for when the client receives a CONNACK response from the server.""" - print('Connected with result code ' + reason_code) + print(f"Connected with result code {reason_code}") client.subscribe(MQTT_TOPIC) def _parse_mqtt_message(topic, payload):