Skip to content

Commit b78f08c

Browse files
author
donghu-jiang
committed
添加连接方式日志
Change-Id: Iaf60c916b3b1bfffec04533af708c02194cf45cc
1 parent 80f5f54 commit b78f08c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

hub/protocol/protocol.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,11 @@ def _ssl_init(self, key_mode):
8888
# 密钥认证
8989
if key_mode is True:
9090
# context = ssl.create_default_context(ssl.Purpose.CLIENT_AUTH, cadata=self.__iot_ca_crt)
91+
self.__logger.info("connect with key...")
9192
context = self.__codec.Ssl().create_content()
9293
self.__mqtt_client.tls_set_context(context)
9394
else:
95+
self.__logger.info("connect with certificate...")
9496
ca = self.__certificate.ca_file
9597
cert = self.__certificate.cert_file
9698
key = self.__certificate.key_file

0 commit comments

Comments
 (0)