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
1aff5b3e
Unverified
Commit
1aff5b3e
authored
Mar 09, 2018
by
liuzheng712
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: update
parent
ed0d6bf7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
app.py
coco/app.py
+0
-1
recorder.py
coco/recorder.py
+2
-1
No files found.
coco/app.py
View file @
1aff5b3e
...
...
@@ -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
):
...
...
coco/recorder.py
View file @
1aff5b3e
...
...
@@ -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'
...
...
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