Debug log reason for lost connection

This commit is contained in:
Etoh 2022-11-05 20:17:22 +00:00 committed by GitHub
parent 5c2398d4cf
commit 434d035374
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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