Change to use setLogLevel()

This commit is contained in:
Bob Lantz
2010-03-24 17:03:57 -07:00
parent fe414722ac
commit d93c6ef6ce
+2 -2
View File
@@ -9,7 +9,7 @@ but it exposes the configuration details and allows customization.
from mininet.net import init
from mininet.node import Node, KernelSwitch
from mininet.util import createLink
from mininet.log import lg, info
from mininet.log import setLogLevel, info
def scratchNet( cname='controller', cargs='ptcp:' ):
"Create network from scratch using kernel switch."
@@ -49,7 +49,7 @@ def scratchNet( cname='controller', cargs='ptcp:' ):
info( '\n' )
if __name__ == '__main__':
lg.setLogLevel( 'info' )
setLogLevel( 'info' )
info( '*** Scratch network demo (kernel datapath)\n' )
KernelSwitch.setup()
init()