mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Fix a bug of getting an incorrect active log level.
This commit is contained in:
parent
8148c92190
commit
11b583ba84
@ -71,7 +71,7 @@ class Caller(object):
|
||||
except (TypeError, CommandExecutionError) as exc:
|
||||
msg = 'Error running \'{0}\': {1}\n'
|
||||
active_level = LOG_LEVELS.get(
|
||||
self.opts['log_level'].lower, logging.ERROR)
|
||||
self.opts['log_level'].lower(), logging.ERROR)
|
||||
if active_level <= logging.DEBUG:
|
||||
sys.stderr.write(traceback.format_exc())
|
||||
sys.stderr.write(msg.format(fun, str(exc)))
|
||||
|
Loading…
Reference in New Issue
Block a user