The upstream `ovs.vlog` plays nice with python logging. No need for the workaround.
Signed-off-by: Jason Kölker <[email protected]> --- ryu/services/protocols/ovsdb/client.py | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/ryu/services/protocols/ovsdb/client.py b/ryu/services/protocols/ovsdb/client.py index 4a67dfd..9b7917e 100644 --- a/ryu/services/protocols/ovsdb/client.py +++ b/ryu/services/protocols/ovsdb/client.py @@ -15,24 +15,8 @@ import collections import errno -import logging import uuid -# NOTE(jkoelker) Patch Vlog so that is uses standard logging -from ovs import vlog - - -class Vlog(vlog.Vlog): - def __init__(self, name): - self.log = logging.getLogger('ovs.%s' % name) - - def __log(self, level, message, **kwargs): - level = vlog.LEVELS.get(level, logging.DEBUG) - self.log.log(level, message, **kwargs) - -vlog.Vlog = Vlog - - from ovs import jsonrpc from ovs import poller from ovs import reconnect -- 2.7.3 ------------------------------------------------------------------------------ Transform Data into Opportunity. Accelerate data analysis in your applications with Intel Data Analytics Acceleration Library. Click to learn more. http://pubads.g.doubleclick.net/gampad/clk?id=278785351&iu=/4140 _______________________________________________ Ryu-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ryu-devel
