Changed to make 'output' the default log level.
This commit is contained in:
+1
-1
@@ -18,7 +18,7 @@ LEVELS = { 'debug': logging.DEBUG,
|
||||
'critical': logging.CRITICAL }
|
||||
|
||||
# change this to logging.INFO to get printouts when running unit tests
|
||||
LOGLEVELDEFAULT = logging.WARNING
|
||||
LOGLEVELDEFAULT = OUTPUT
|
||||
|
||||
#default: '%(asctime)s - %(name)s - %(levelname)s - %(message)s'
|
||||
LOGMSGFORMAT = '%(message)s'
|
||||
|
||||
@@ -10,6 +10,7 @@ from mininet.node import Host, Controller, ControllerParams
|
||||
# from mininet.node import KernelSwitch
|
||||
from mininet.node import UserSwitch, OVSKernelSwitch
|
||||
from mininet.topo import SingleSwitchTopo, LinearTopo
|
||||
from mininet.log import setLogLevel
|
||||
|
||||
SWITCHES = { 'user': UserSwitch,
|
||||
'ovsk': OVSKernelSwitch,
|
||||
@@ -56,4 +57,5 @@ class testLinear( unittest.TestCase ):
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
setLogLevel('warning')
|
||||
unittest.main()
|
||||
|
||||
Reference in New Issue
Block a user