Commit 47413b37 authored by ibuler's avatar ibuler

[Feature] record callback set true

parent c8b6f615
......@@ -257,7 +257,7 @@ class Coco:
time.sleep(1)
def put_replay_queue(self, session, data):
logger.debug("Put replay data: {} {}".format(session, data))
logger.info("Put replay data: {} {}".format(session, data))
self._replay_queue.put({
"session": session.id,
"data": data,
......
......@@ -90,6 +90,7 @@ class ServerReplayRecorder(ReplayRecorder):
for data in data_set:
try:
ServerReplayRecorder.filelist[data["session"]].write(str(data) + '\n')
return True
except KeyError:
logger.error("session ({})file does not exist!".format(data["session"]))
......
___
|_ |
| |_ _ _ __ ___ _ __ ___ _____ _____ _ __
| | | | | '_ ` _ \| '_ \/ __|/ _ \ \ / / _ \ '__|
/\__/ / |_| | | | | | | |_) \__ \ __/\ V / __/ |
\____/ \__,_|_| |_| |_| .__/|___/\___| \_/ \___|_|
| |_ _ _ __ ___ _ __ ___ ___ _ ____ _____ _ __
| | | | | '_ ` _ \| '_ \/ __|/ _ \ '__\ \ / / _ \ '__|
/\__/ / |_| | | | | | | |_) \__ \ __/ | \ V / __/ |
\____/ \__,_|_| |_| |_| .__/|___/\___|_| \_/ \___|_|
| |
|_|
\ No newline at end of file
|_|
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