diff --git a/data_safe_haven/logging/plain_file_handler.py b/data_safe_haven/logging/plain_file_handler.py index f41690b043..ffce4a551c 100644 --- a/data_safe_haven/logging/plain_file_handler.py +++ b/data_safe_haven/logging/plain_file_handler.py @@ -34,5 +34,5 @@ def emit(self, record: logging.LogRecord) -> None: if isinstance(record.msg, Text): # Convert rich.text.Text objects to strings record.msg = str(record.msg) - record.msg = self.strip_ansi_escapes(self.strip_rich_formatting(record.msg)) + record.msg = self.strip_ansi_escapes(self.strip_rich_formatting(record.msg)) super().emit(record)