Debug log reason for lost connection
This commit is contained in:
parent
5c2398d4cf
commit
434d035374
@ -96,6 +96,11 @@ class SyncClientProtocol(JSONCommandProtocol):
|
||||
self.sendHello()
|
||||
|
||||
def connectionLost(self, reason):
|
||||
try:
|
||||
self._client.ui.showDebugMessage(str(reason.stack))
|
||||
self._client.ui.showDebugMessage(str(reason.value))
|
||||
except:
|
||||
pass
|
||||
try:
|
||||
if "Invalid DNS-ID" in str(reason.value):
|
||||
self._client._serverSupportsTLS = False
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user