Commit 49d0c399 authored by ibuler's avatar ibuler

[Feture] 上传命令记录

parent a0a71d8d
......@@ -185,7 +185,7 @@ class ServerCommandRecorder(LocalFileCommandRecorder):
def record_command(self, now, _input, _output):
logger.debug("File recorder command: ({},{})".format(_input, _output))
self.cmd_f.write("{} {} {}\n".format(
self.cmd_f.write("{}|{}|{}\n".format(
int(now.timestamp()),
base64.b64encode(_input.encode("utf-8")).decode('utf-8'),
base64.b64encode(_output.encode("utf-8")).decode('utf-8'),
......@@ -210,7 +210,7 @@ class ServerCommandRecorder(LocalFileCommandRecorder):
def push_archive_record(self, archive):
logger.debug("Start push command record to server")
return self.app.service.push_session_replay(archive, str(self.session.id))
return self.app.service.push_session_command(archive, str(self.session.id))
def push_record(self):
logger.info("Start push command record to server")
......
......@@ -53,3 +53,6 @@ APP_NAME = "coco"
# 异步上报统计命令
# COMMAND_PUSH_ASYNC = True
# Admin的名字,出问题会提示给用户
# ADMINS = ''
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