Skip to content
Snippets Groups Projects
Commit 3e01aa54 authored by Anael Beutot's avatar Anael Beutot
Browse files

Removed debug messages in libvirt event handling.

parent 4dd4ec1c
No related branches found
No related tags found
No related merge requests found
...@@ -185,7 +185,7 @@ class EventLoop(object): ...@@ -185,7 +185,7 @@ class EventLoop(object):
h = LoopHandler(self.loop, handle_id, fd, events, cb, opaque) h = LoopHandler(self.loop, handle_id, fd, events, cb, opaque)
h.start() h.start()
self.handles[handle_id] = h 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 return handle_id
def add_timer(self, interval, cb, opaque): def add_timer(self, interval, cb, opaque):
...@@ -202,7 +202,7 @@ class EventLoop(object): ...@@ -202,7 +202,7 @@ class EventLoop(object):
h = LoopTimer(self.loop, timer_id, interval, cb, opaque) h = LoopTimer(self.loop, timer_id, interval, cb, opaque)
h.start() h.start()
self.timers[timer_id] = h 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 return timer_id
def update_handle(self, handle_id, events): def update_handle(self, handle_id, events):
...@@ -212,7 +212,7 @@ class EventLoop(object): ...@@ -212,7 +212,7 @@ class EventLoop(object):
h = self.handles.get(handle_id) h = self.handles.get(handle_id)
if h: if h:
h.events = events 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): def update_timer(self, timer_id, interval):
"""Change the periodic frequency of the timer. """Change the periodic frequency of the timer.
...@@ -229,7 +229,7 @@ class EventLoop(object): ...@@ -229,7 +229,7 @@ class EventLoop(object):
h = self.handles.pop(handle_id, None) h = self.handles.pop(handle_id, None)
if h: if h:
h.stop() h.stop()
logger.debug('Remove handle %d', handle_id) # logger.debug('Remove handle %d', handle_id)
def remove_timer(self, timer_id): def remove_timer(self, timer_id):
"""Stop firing the periodic timer. """Stop firing the periodic timer.
...@@ -238,7 +238,7 @@ class EventLoop(object): ...@@ -238,7 +238,7 @@ class EventLoop(object):
t = self.timers.pop(timer_id, None) t = self.timers.pop(timer_id, None)
if t: if t:
t.stop() t.stop()
logger.debug('Remove timer %d', timer_id) # logger.debug('Remove timer %d', timer_id)
def register_callbacks(self, *callbacks): def register_callbacks(self, *callbacks):
"""Register a callback.""" """Register a callback."""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment