diff options
author | Jesse Luehrs <doy@tozt.net> | 2014-10-20 11:32:04 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2014-10-20 11:32:04 -0400 |
commit | bdcec99e2971c23095ef991b81a3cf81a5d8832c (patch) | |
tree | 0356cc3e99dfb7592fa15d2158e36b696ad0e648 /termcast_server/termcast.py | |
parent | 412e8a87c02a09d69c6073125352c54ccda13a48 (diff) | |
download | python-termcast-server-bdcec99e2971c23095ef991b81a3cf81a5d8832c.tar.gz python-termcast-server-bdcec99e2971c23095ef991b81a3cf81a5d8832c.zip |
display stack traces with exceptions
Diffstat (limited to 'termcast_server/termcast.py')
-rw-r--r-- | termcast_server/termcast.py | 5 |
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 |