fix: update

parent ed0d6bf7
......@@ -111,7 +111,6 @@ class Coco:
def get_recorder_class(self):
self.replay_recorder_class = ServerReplayRecorder
self.replay_recorder_class.client = jms_storage.init(self.config["REPLAY_STORAGE"])
self.command_recorder_class = get_command_recorder_class(self.config)
def new_command_recorder(self):
......
......@@ -92,7 +92,6 @@ class ServerReplayRecorder(ReplayRecorder):
def __init__(self, app):
super().__init__(app)
self.file = None
self.client = None
def record(self, data):
"""
......@@ -113,6 +112,8 @@ class ServerReplayRecorder(ReplayRecorder):
data['data'].decode('utf-8', 'replace')) + ',')
def session_start(self, session_id):
configs = self.app.service.load_config_from_server()
self.client = jms_storage.init(configs["REPLAY_STORAGE"])
self.starttime = time.time()
self.file = open(os.path.join(
self.app.config['LOG_DIR'], session_id + '.replay'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment