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/ssh.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/ssh.py')
-rw-r--r-- | termcast_server/ssh.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/termcast_server/ssh.py b/termcast_server/ssh.py index fe585df..0b03f28 100644 --- a/termcast_server/ssh.py +++ b/termcast_server/ssh.py @@ -3,6 +3,7 @@ import paramiko import select import threading import time +import traceback class Connection(object): def __init__(self, client, connection_id, publisher, keyfile): @@ -128,6 +129,7 @@ class Connection(object): try: total_sent += self.chan.send(data[total_sent:]) except Exception as e: + print(traceback.format_exc()) print("*** send failed: " + str(e)) break |