From: peusterm Date: Fri, 15 Jan 2016 09:35:06 +0000 (+0100) Subject: moved loglevel setting to topology definition X-Git-Tag: v3.1~185^2~7 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=d47ab253c3958c8ea0c03c520ef99502935c7263;p=osm%2Fvim-emu.git moved loglevel setting to topology definition --- diff --git a/emuvim/dcemulator/net.py b/emuvim/dcemulator/net.py index 0725ac1..eace03a 100644 --- a/emuvim/dcemulator/net.py +++ b/emuvim/dcemulator/net.py @@ -24,7 +24,6 @@ class DCNetwork(Dockernet): def __init__(self, **kwargs): self.dcs = {} # create a Mininet/Dockernet network - setLogLevel('info') # set Mininet loglevel # call original Docker.__init__ and setup default controller Dockernet.__init__( self, controller=Controller, switch=OVSKernelSwitch, **kwargs) diff --git a/emuvim/example_topology.py b/emuvim/example_topology.py index ce267d5..91285f8 100644 --- a/emuvim/example_topology.py +++ b/emuvim/example_topology.py @@ -17,6 +17,7 @@ The original Mininet API has to be completely hidden and not be used by this script. """ import logging +from mininet.log import setLogLevel from dcemulator.net import DCNetwork from api.zerorpcapi import ZeroRpcApiEndpoint @@ -101,6 +102,7 @@ def create_topology1(): def main(): + setLogLevel('info') # set Mininet loglevel create_topology1()