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
d9a86116
Unverified
Commit
d9a86116
authored
Jan 24, 2018
by
liuzheng712
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: ignore
parent
7a54acaf
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
recorder.py
coco/recorder.py
+5
-5
No files found.
coco/recorder.py
View file @
d9a86116
...
@@ -9,7 +9,7 @@ import os
...
@@ -9,7 +9,7 @@ import os
import
gzip
import
gzip
import
json
import
json
import
shutil
import
shutil
import
boto3
# AWS S3 sdk
#
import boto3 # AWS S3 sdk
from
jms_es_sdk
import
ESStore
from
jms_es_sdk
import
ESStore
...
@@ -248,10 +248,10 @@ class S3ReplayRecorder(ReplayRecorder):
...
@@ -248,10 +248,10 @@ class S3ReplayRecorder(ReplayRecorder):
self
.
s3
=
boto3
.
client
(
's3'
,
aws_access_key_id
=
self
.
aws_id
,
aws_secret_access_key
=
self
.
aws_key
)
self
.
s3
=
boto3
.
client
(
's3'
,
aws_access_key_id
=
self
.
aws_id
,
aws_secret_access_key
=
self
.
aws_key
)
self
.
bucket
=
app
.
config
[
"REPLAY_RECORD_ENGINE"
]
.
get
(
"BUCKET"
,
"jumpserver"
)
self
.
bucket
=
app
.
config
[
"REPLAY_RECORD_ENGINE"
]
.
get
(
"BUCKET"
,
"jumpserver"
)
def
push_to_server
(
self
,
session_id
):
#
def push_to_server(self, session_id):
self
.
s3
.
upload_file
(
#
self.s3.upload_file(
os
.
path
.
join
(
self
.
app
.
config
[
'LOG_DIR'
],
session_id
+
'.replay.gz'
),
#
os.path.join(self.app.config['LOG_DIR'], session_id + '.replay.gz'),
self
.
bucket
,
self
.
aws_key
)
# TODO: 添加日期文件夹及协调一些事宜<liuzheng>
#
self.bucket, self.aws_key) # TODO: 添加日期文件夹及协调一些事宜<liuzheng>
def
get_command_recorder_class
(
config
):
def
get_command_recorder_class
(
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