Skip to content

Commit 31d23a7

Browse files
authored
Merge pull request #74 from KTibow/patch-1
Fix bug with logging connection
2 parents 4a2ad00 + 9b6cc59 commit 31d23a7

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)