Fix a bug of getting an incorrect active log level.

This commit is contained in:
Jack Kuan 2013-01-11 11:00:50 -05:00
parent 8148c92190
commit 11b583ba84

View File

@ -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)))