mirror of
https://github.com/huashengdun/webssh.git
synced 2026-02-28 02:03:48 +00:00
logging traceback exc
This commit is contained in:
4
main.py
4
main.py
@@ -2,6 +2,7 @@ import io
|
||||
import logging
|
||||
import os.path
|
||||
import socket
|
||||
import traceback
|
||||
import uuid
|
||||
import weakref
|
||||
import paramiko
|
||||
@@ -166,9 +167,8 @@ class IndexHandler(tornado.web.RequestHandler):
|
||||
try:
|
||||
worker = self.ssh_connect()
|
||||
except Exception as e:
|
||||
logging.error((type(e), e))
|
||||
logging.error(traceback.format_exc())
|
||||
status = str(e)
|
||||
# raise
|
||||
else:
|
||||
worker_id = worker.id
|
||||
workers[worker_id] = worker
|
||||
|
||||
Reference in New Issue
Block a user