Commit 619e01ca authored by ibuler's avatar ibuler

[Bugfix] For s3 debug

parent 3636333c
...@@ -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):
......
...@@ -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
...@@ -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()
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