projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
debian: Add missing ${python:Depends} to openvswitch-test package.
[openvswitch]
/
python
/
ovs
/
poller.py
diff --git
a/python/ovs/poller.py
b/python/ovs/poller.py
index aea35460a2e645544434094493c705fd66c09d8d..8d52d32b2ffd15a4a942311a25a8e14879c10c6f 100644
(file)
--- a/
python/ovs/poller.py
+++ b/
python/ovs/poller.py
@@
-13,9
+13,11
@@
# limitations under the License.
import errno
# limitations under the License.
import errno
-import logging
import select
import ovs.timeval
import select
import ovs.timeval
+import ovs.vlog
+
+vlog = ovs.vlog.Vlog("poller")
class Poller(object):
class Poller(object):
@@
-96,13
+98,13
@@
class Poller(object):
# XXX rate-limit
error, msg = e
if error != errno.EINTR:
# XXX rate-limit
error, msg = e
if error != errno.EINTR:
-
logging.erro
r("poll: %s" % e[1])
+
vlog.er
r("poll: %s" % e[1])
finally:
self.__reset()
def __log_wakeup(self, events):
if not events:
finally:
self.__reset()
def __log_wakeup(self, events):
if not events:
-
logging.debu
g("%d-ms timeout" % self.timeout)
+
vlog.db
g("%d-ms timeout" % self.timeout)
else:
for fd, revents in events:
if revents != 0:
else:
for fd, revents in events:
if revents != 0:
@@
-117,7
+119,7
@@
class Poller(object):
s += "[POLLHUP]"
if revents & select.POLLNVAL:
s += "[POLLNVAL]"
s += "[POLLHUP]"
if revents & select.POLLNVAL:
s += "[POLLNVAL]"
-
logging.debu
g("%s on fd %d" % (s, fd))
+
vlog.db
g("%s on fd %d" % (s, fd))
def __reset(self):
self.poll = select.poll()
def __reset(self):
self.poll = select.poll()