diff --git a/web/utils/ssh/ssh_local.py b/web/utils/ssh/ssh_local.py index 2201881b7..48e4e663e 100644 --- a/web/utils/ssh/ssh_local.py +++ b/web/utils/ssh/ssh_local.py @@ -39,7 +39,7 @@ class ssh_local(object): _instance_lock = threading.Lock() def __init__(self): - pass + self.__debug_file = mw.getPanelDir()+ '/logs/ssh_terminal.log' @classmethod def instance(cls, *args, **kwargs): diff --git a/web/utils/ssh/ssh_terminal.py b/web/utils/ssh/ssh_terminal.py index 4419860dc..e683e60c0 100644 --- a/web/utils/ssh/ssh_terminal.py +++ b/web/utils/ssh/ssh_terminal.py @@ -30,7 +30,7 @@ from flask_socketio import SocketIO, emit, send class ssh_terminal(object): - __debug_file = 'logs/ssh_terminal.log' + __debug_file = 'logs/ssh_terminal.log' __log_type = 'SSH终端' # websocketio 唯一标识 @@ -59,6 +59,7 @@ class ssh_terminal(object): _instance_lock = threading.Lock() def __init__(self): + self.__debug_file = mw.getPanelDir()+ '/logs/ssh_terminal.log' ht = threading.Thread(target=self.heartbeat) ht.start()