From 61ab9c4e77e7929a16aad8645a8f27c809ab87ee Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Mon, 15 Jan 2024 15:14:20 +0100 Subject: [PATCH] fix linting --- prometheuspvesd/logger.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/prometheuspvesd/logger.py b/prometheuspvesd/logger.py index 062924c..f97628b 100644 --- a/prometheuspvesd/logger.py +++ b/prometheuspvesd/logger.py @@ -46,14 +46,14 @@ class LogFilter: class SimpleFormatter(logging.Formatter): """Logging Formatter for simple logs.""" - def format(self, record): # noqa + def format(self, record): return logging.Formatter.format(self, record) 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) @@ -61,7 +61,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)