Skip to content

Commit

Permalink
use 'formatter' kwarg of catching_logs
Browse files Browse the repository at this point in the history
  • Loading branch information
twmr committed Sep 22, 2017
1 parent 207f153 commit 2559ec8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _pytest/logging.py
Expand Up @@ -350,9 +350,9 @@ def __init__(self, config):
log_cli_formatter = logging.Formatter(
log_cli_format,
datefmt=log_cli_date_format)
log_cli_handler.setFormatter(log_cli_formatter)
self.log_cli_handler = log_cli_handler # needed for a single unittest
self.live_logs = catching_logs(log_cli_handler,
formatter=log_cli_formatter,
level=self.log_cli_level)

log_file = get_option_ini(config, 'log_file')
Expand Down

0 comments on commit 2559ec8

Please sign in to comment.