aboutsummaryrefslogtreecommitdiffstats
path: root/termcast_server/termcast.py
diff options
context:
space:
mode:
Diffstat (limited to 'termcast_server/termcast.py')
-rw-r--r--termcast_server/termcast.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/termcast_server/termcast.py b/termcast_server/termcast.py
index 8a4e98a..97bcc6b 100644
--- a/termcast_server/termcast.py
+++ b/termcast_server/termcast.py
@@ -1,7 +1,8 @@
-import time
import json
import re
import ssl
+import time
+import traceback
import vt100
@@ -213,6 +214,7 @@ class Connection(object):
try:
buf = self.client.recv(1024)
except Exception as e:
+ print(traceback.format_exc())
print('*** recv failed: ' + str(e))
if len(buf) > 0:
@@ -290,6 +292,7 @@ class Connection(object):
self.client, server_side=True
)
except Exception as e:
+ print(traceback.format_exc())
print('*** TLS connection failed: ' + str(e))
return False