Skip to content

Commit 41c8186

Browse files
committed
umqtt: log subscribe topic.
1 parent c3ac3a6 commit 41c8186

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

aiotcloud/umqtt.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ def publish(self, topic, msg, retain=False, qos=0):
186186
assert 0
187187

188188
def subscribe(self, topic, qos=0):
189+
logging.info(f"Subscribing to topic: {topic}.")
189190
assert self.cb is not None, "Subscribe callback is not set"
190191
pkt = bytearray(b"\x82\0\0\0")
191192
self.pid += 1

0 commit comments

Comments
 (0)