Skip to content

Commit

Permalink
Changing CLI logging format
Browse files Browse the repository at this point in the history
  • Loading branch information
TheNavigat committed Jun 10, 2016
1 parent bc50ad4 commit b512808
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions certbot/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -615,11 +615,12 @@ def _cli_log_handler(config, level, fmt):

def setup_logging(config, cli_handler_factory, logfile):
"""Setup logging."""
fmt = "%(asctime)s:%(levelname)s:%(name)s:%(message)s"
file_fmt = "%(asctime)s:%(levelname)s:%(name)s:%(message)s"
cli_fmt = "%(message)s"
level = -config.verbose_count * 10
file_handler, log_file_path = setup_log_file_handler(
config, logfile=logfile, fmt=fmt)
cli_handler = cli_handler_factory(config, level, fmt)
config, logfile=logfile, fmt=file_fmt)
cli_handler = cli_handler_factory(config, level, cli_fmt)

# TODO: use fileConfig?

Expand Down

0 comments on commit b512808

Please sign in to comment.