Add TLS version debug info

This commit is contained in:
Peter Šurda 2017-05-07 20:15:57 +02:00
parent 1c55bf7d4b
commit 23b9555929
Signed by untrusted user: PeterSurda
GPG Key ID: 0C5F50C0B5F37D87
1 changed files with 2 additions and 0 deletions

View File

@ -290,6 +290,8 @@ class receiveDataThread(threading.Thread):
try:
self.sslSock.do_handshake()
logger.debug("TLS handshake success")
if sys.version_info >= (2, 7, 9):
logger.debug("TLS protocol version: %s", self.sslSock.version())
break
except ssl.SSLError as e:
if sys.hexversion >= 0x02070900: