Skip to content

Commit 9b6cc59

Browse files
authored
Fix bug with logging connection
1 parent 4a2ad00 commit 9b6cc59

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
@@ -231,7 +231,7 @@ def _get_connect_socket(self, host, port, *, timeout=1):
231231
self.logger.info(
232232
"Establishing a SECURE SSL connection to {0}:{1}".format(host, port)
233233
)
234-
else:
234+
elif self.logger:
235235
self.logger.info(
236236
"Establishing an INSECURE connection to {0}:{1}".format(host, port)
237237
)

0 commit comments

Comments
 (0)