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:
1 parent
e3a2ef011f
commit
1a40cd0477
4 files changed
+49
-26
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user