Use the nicer log level name for printing.

This commit is contained in:
Joshua Harlow
2012-08-17 12:27:04 -07:00
parent d10d7a3474
commit 559099cf14
2 changed files with 5 additions and 2 deletions

4
smithy
View File

@@ -270,8 +270,8 @@ def main():
logging.setupLogging(log_level)
LOG.debug("Command line options:")
utils.log_object(args, item_max_len=80)
LOG.debug("Log level is: %s" % (log_level))
utils.log_object(args, item_max_len=64, logger=LOG, level=logging.DEBUG)
LOG.debug("Log level is: %s" % (logging.getLevelName(log_level)))
# Will need root to setup openstack
if not sh.got_root():