have the handler actually set the level of the logger

This commit is contained in:
Noah Swartz 2015-12-17 14:36:53 -08:00
parent 4e9e01338c
commit 253cc3dc8f

View file

@ -116,6 +116,7 @@ def renew(cert, old_version):
def _cli_log_handler(args, level, fmt): # pylint: disable=unused-argument
handler = colored_logging.StreamHandler()
handler.setFormatter(logging.Formatter(fmt))
handler.setLevel(level)
return handler