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
49790646
Commit
49790646
authored
Dec 29, 2017
by
ibuler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Bugfix] 普通用户无法记录命令
parent
2f0f58c8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
recorder.py
coco/recorder.py
+2
-3
session.py
coco/session.py
+1
-1
No files found.
coco/recorder.py
View file @
49790646
...
...
@@ -174,11 +174,10 @@ class ServerCommandRecorder(CommandRecorder, metaclass=Singleton):
thread
.
start
()
def
session_start
(
self
,
session_id
):
p
rint
(
"When session {} start exec"
.
format
(
session_id
))
p
ass
def
session_end
(
self
,
session_id
):
self
.
stop_evt
.
set
()
print
(
"When session {} end start"
.
format
(
session_id
))
pass
def
__del__
(
self
):
print
(
"{} has been gc"
.
format
(
self
))
...
...
coco/session.py
View file @
49790646
...
...
@@ -182,4 +182,4 @@ class Session:
return
self
.
id
def
__del__
(
self
):
logger
.
info
(
"Session {} object has been GC"
)
logger
.
info
(
"Session {} object has been GC"
.
format
(
self
.
id
)
)
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