From d8d7fed993a2921de6bc0325ea6d47fe9aae8671 Mon Sep 17 00:00:00 2001 From: Adam Turner <9087854+aa-turner@users.noreply.github.com> Date: Sat, 13 May 2023 02:50:00 +0100 Subject: [PATCH] Don't add colours to messagelog We need to remove colours later for display, so it is pointless to add them. --- sphinx/util/logging.py | 1 - 1 file changed, 1 deletion(-) diff --git a/sphinx/util/logging.py b/sphinx/util/logging.py index 369aa4137..1b2d6e450 100644 --- a/sphinx/util/logging.py +++ b/sphinx/util/logging.py @@ -593,7 +593,6 @@ def setup(app: Sphinx, status: IO, warning: IO) -> None: messagelog_handler = logging.StreamHandler(LastMessagesWriter(app, status)) messagelog_handler.addFilter(InfoFilter()) messagelog_handler.setLevel(VERBOSITY_MAP[app.verbosity]) - messagelog_handler.setFormatter(ColorizeFormatter()) logger.addHandler(info_handler) logger.addHandler(warning_handler)