We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c609d2d commit 2c6c3b8Copy full SHA for 2c6c3b8
labgrid/pytestplugin/hooks.py
@@ -43,7 +43,8 @@ def set_cli_log_level(level):
43
44
45
def configure_pytest_logging(config, plugin):
46
- plugin.log_cli_handler.formatter.add_color_level(logging.CONSOLE, "blue")
+ if hasattr(plugin.log_cli_handler.formatter, "add_color_level"):
47
+ plugin.log_cli_handler.formatter.add_color_level(logging.CONSOLE, "blue")
48
plugin.log_cli_handler.setFormatter(StepFormatter(
49
color=config.option.lg_colored_steps,
50
parent=plugin.log_cli_handler.formatter,
0 commit comments