8000 Improves logging while connecting. (#1157) · johnmanong/python-docs-samples@3749975 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3749975

Browse files
gguussJon Wayne Parrott
authored andcommitted
Improves logging while connecting. (GoogleCloudPlatform#1157)
1 parent 503f0b9 commit 3749975

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

iot/api-client/mqtt_example/cloudiot_mqtt_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def error_str(rc):
7171

7272
def on_connect(unused_client, unused_userdata, unused_flags, rc):
7373
"""Callback for when a device connects."""
74-
print('on_connect', error_str(rc))
74+
print('on_connect', mqtt.connack_string(rc))
7575

7676

7777
def on_disconnect(unused_client, unused_userdata, rc):

0 commit comments

Comments
 (0)
0