From d47ab253c3958c8ea0c03c520ef99502935c7263 Mon Sep 17 00:00:00 2001 From: peusterm Date: Fri, 15 Jan 2016 10:35:06 +0100 Subject: [PATCH] moved loglevel setting to topology definition --- emuvim/dcemulator/net.py | 1 - emuvim/example_topology.py | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) 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() -- 2.25.1