Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
coco
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ops
coco
Commits
ed0d6bf7
Unverified
Commit
ed0d6bf7
authored
Mar 09, 2018
by
liuzheng712
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: fix the recorder
parent
60bd34d8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
app.py
coco/app.py
+4
-2
recorder.py
coco/recorder.py
+4
-4
No files found.
coco/app.py
View file @
ed0d6bf7
...
@@ -10,13 +10,14 @@ import socket
...
@@ -10,13 +10,14 @@ import socket
import
json
import
json
from
jms.service
import
AppService
from
jms.service
import
AppService
import
jms_storage
from
.config
import
Config
from
.config
import
Config
from
.sshd
import
SSHServer
from
.sshd
import
SSHServer
from
.httpd
import
HttpServer
from
.httpd
import
HttpServer
from
.logger
import
create_logger
from
.logger
import
create_logger
from
.tasks
import
TaskHandler
from
.tasks
import
TaskHandler
from
.recorder
import
get_command_recorder_class
,
get_replay_recorder_class
from
.recorder
import
get_command_recorder_class
,
ServerReplayRecorder
from
.utils
import
get_logger
from
.utils
import
get_logger
...
@@ -109,7 +110,8 @@ class Coco:
...
@@ -109,7 +110,8 @@ class Coco:
self
.
config
.
update
(
configs
)
self
.
config
.
update
(
configs
)
def
get_recorder_class
(
self
):
def
get_recorder_class
(
self
):
self
.
replay_recorder_class
=
get_replay_recorder_class
(
self
.
config
)
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
)
self
.
command_recorder_class
=
get_command_recorder_class
(
self
.
config
)
def
new_command_recorder
(
self
):
def
new_command_recorder
(
self
):
...
...
coco/recorder.py
View file @
ed0d6bf7
...
@@ -290,7 +290,7 @@ def get_command_recorder_class(config):
...
@@ -290,7 +290,7 @@ def get_command_recorder_class(config):
else
:
else
:
return
ServerCommandRecorder
return
ServerCommandRecorder
#
def
get_replay_recorder_class
(
config
):
#
def get_replay_recorder_class(config):
ServerReplayRecorder
.
client
=
jms_storage
.
init
(
config
[
"REPLAY_STORAGE"
])
#
ServerReplayRecorder.client = jms_storage.init(config["REPLAY_STORAGE"])
return
ServerReplayRecorder
#
return ServerReplayRecorder
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment