This commit is contained in:
Mr Chen 2024-11-12 01:12:15 +08:00
parent 17a9f07f04
commit 49bfb5b3a8
2 changed files with 3 additions and 2 deletions

View File

@ -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):

View File

@ -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()