Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cc-node
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
cc-node
Commits
3e01aa54
Commit
3e01aa54
authored
12 years ago
by
Anael Beutot
Browse files
Options
Downloads
Patches
Plain Diff
Removed debug messages in libvirt event handling.
parent
4dd4ec1c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ccnode/hypervisor/lib.py
+5
-5
5 additions, 5 deletions
ccnode/hypervisor/lib.py
with
5 additions
and
5 deletions
ccnode/hypervisor/lib.py
+
5
−
5
View file @
3e01aa54
...
...
@@ -185,7 +185,7 @@ class EventLoop(object):
h
=
LoopHandler
(
self
.
loop
,
handle_id
,
fd
,
events
,
cb
,
opaque
)
h
.
start
()
self
.
handles
[
handle_id
]
=
h
logger
.
debug
(
'
Add handle %d fd %d events %d
'
,
handle_id
,
fd
,
events
)
#
logger.debug('Add handle %d fd %d events %d', handle_id, fd, events)
return
handle_id
def
add_timer
(
self
,
interval
,
cb
,
opaque
):
...
...
@@ -202,7 +202,7 @@ class EventLoop(object):
h
=
LoopTimer
(
self
.
loop
,
timer_id
,
interval
,
cb
,
opaque
)
h
.
start
()
self
.
timers
[
timer_id
]
=
h
logger
.
debug
(
'
Add timer %d interval %d
'
,
timer_id
,
interval
)
#
logger.debug('Add timer %d interval %d', timer_id, interval)
return
timer_id
def
update_handle
(
self
,
handle_id
,
events
):
...
...
@@ -212,7 +212,7 @@ class EventLoop(object):
h
=
self
.
handles
.
get
(
handle_id
)
if
h
:
h
.
events
=
events
logger
.
debug
(
'
Update handle %d fd %d events %d
'
,
handle_id
,
h
.
fd
,
events
)
#
logger.debug('Update handle %d fd %d events %d', handle_id, h.fd, events)
def
update_timer
(
self
,
timer_id
,
interval
):
"""
Change the periodic frequency of the timer.
...
...
@@ -229,7 +229,7 @@ class EventLoop(object):
h
=
self
.
handles
.
pop
(
handle_id
,
None
)
if
h
:
h
.
stop
()
logger
.
debug
(
'
Remove handle %d
'
,
handle_id
)
#
logger.debug('Remove handle %d', handle_id)
def
remove_timer
(
self
,
timer_id
):
"""
Stop firing the periodic timer.
...
...
@@ -238,7 +238,7 @@ class EventLoop(object):
t
=
self
.
timers
.
pop
(
timer_id
,
None
)
if
t
:
t
.
stop
()
logger
.
debug
(
'
Remove timer %d
'
,
timer_id
)
#
logger.debug('Remove timer %d', timer_id)
def
register_callbacks
(
self
,
*
callbacks
):
"""
Register a callback.
"""
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment