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
619e01ca
Commit
619e01ca
authored
Jan 26, 2018
by
ibuler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Bugfix] For s3 debug
parent
3636333c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
+4
-3
app.py
coco/app.py
+1
-1
recorder.py
coco/recorder.py
+0
-2
conf_example.py
conf_example.py
+3
-0
No files found.
coco/app.py
View file @
619e01ca
...
@@ -49,7 +49,7 @@ class Coco:
...
@@ -49,7 +49,7 @@ class Coco:
'MAX_CONNECTIONS'
:
500
,
'MAX_CONNECTIONS'
:
500
,
'ADMINS'
:
''
,
'ADMINS'
:
''
,
'COMMAND_STORAGE'
:
{
'TYPE'
:
'server'
},
# server
'COMMAND_STORAGE'
:
{
'TYPE'
:
'server'
},
# server
'REPLAY_
RECORD_ENGINE'
:
'server'
,
'REPLAY_
STORAGE'
:
{
'TYPE'
:
'server'
}
,
}
}
def
__init__
(
self
,
root_path
=
None
):
def
__init__
(
self
,
root_path
=
None
):
...
...
coco/recorder.py
View file @
619e01ca
...
@@ -271,7 +271,5 @@ def get_replay_recorder_class(config):
...
@@ -271,7 +271,5 @@ def get_replay_recorder_class(config):
replay_storage
=
config
[
"REPLAY_STORAGE"
]
replay_storage
=
config
[
"REPLAY_STORAGE"
]
if
replay_storage
[
'TYPE'
]
==
"s3"
:
if
replay_storage
[
'TYPE'
]
==
"s3"
:
return
S3ReplayRecorder
return
S3ReplayRecorder
elif
replay_storage
[
'TYPE'
]
==
"locale"
:
return
ServerReplayRecorder
else
:
else
:
return
ServerReplayRecorder
return
ServerReplayRecorder
conf_example.py
View file @
619e01ca
...
@@ -62,6 +62,9 @@ class Config:
...
@@ -62,6 +62,9 @@ class Config:
COMMAND_STORAGE
=
{
COMMAND_STORAGE
=
{
"TYPE"
:
"server"
"TYPE"
:
"server"
}
}
REPLAY_STORAGE
=
{
"TYPE"
:
"server"
}
config
=
Config
()
config
=
Config
()
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