From 8f320470d6803fcb831e814bcaa02edd685655d0 Mon Sep 17 00:00:00 2001 From: Joerg Lehmann Date: Sat, 19 Oct 2024 11:43:44 +0200 Subject: [PATCH] fix bug --- mqtt2log.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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):