From b7283ff76cff812e12aacfd966571d2521d97953 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Mon, 15 Jan 2024 15:14:19 +0100 Subject: [PATCH] fix linting --- gitbatch/logging.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gitbatch/logging.py b/gitbatch/logging.py index 2dada1a..8d288cf 100644 --- a/gitbatch/logging.py +++ b/gitbatch/logging.py @@ -46,7 +46,7 @@ class LogFilter: class MultilineFormatter(logging.Formatter): """Logging Formatter to reset color after newline characters.""" - def format(self, record): # noqa + def format(self, record): record.msg = record.msg.replace("\n", f"\n{colorama.Style.RESET_ALL}... ") return logging.Formatter.format(self, record) @@ -54,7 +54,7 @@ class MultilineFormatter(logging.Formatter): class MultilineJsonFormatter(jsonlogger.JsonFormatter): """Logging Formatter to remove newline characters.""" - def format(self, record): # noqa + def format(self, record): record.msg = record.msg.replace("\n", " ") return jsonlogger.JsonFormatter.format(self, record)