Skip to content

Commit 3ce387e

Browse files
committed
use f-string for logging
it seems the previous code does not properly work with Adafruit logging. This should fix it.
1 parent f56577c commit 3ce387e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_minimqtt/adafruit_minimqtt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -869,7 +869,7 @@ def subscribe(self, topic: str, qos: int = 0) -> None:
869869
qos_byte = q.to_bytes(1, "big")
870870
packet += topic_size + t.encode() + qos_byte
871871
for t, q in topics:
872-
self.logger.debug("SUBSCRIBING to topic %s with QoS %d", t, q)
872+
self.logger.debug(f"SUBSCRIBING to topic {t} with QoS {q}")
873873
self.logger.debug(f"packet: {packet}")
874874
self._sock.send(packet)
875875
stamp = self.get_monotonic_time()

0 commit comments

Comments
 (0)