Add new loglevel to display CLI output only

Also print warning if user chooses a loglevel that will hide CLI output.
This commit is contained in:
Brandon Heller
2010-03-04 18:58:37 -08:00
parent e3a2ef011f
commit 1a40cd0477
4 changed files with 49 additions and 26 deletions
+4
View File
@@ -151,6 +151,10 @@ class MininetRunner( object ):
"Setup and validate environment."
# set logging verbosity
if LEVELS[self.options.verbosity] > LEVELS['cliinfo']:
print ( '*** WARNING: selected verbosity level (%s) will hide CLI '
'output!\n'
'Please restart Mininet with -v [debug, info, cliinfo].' )
lg.setLogLevel( self.options.verbosity )
# validate environment setup