custom_logger: fix type errror in format_time

This commit is contained in:
Jörg Thalheim 2023-09-27 11:28:38 +02:00 committed by Mic92
parent 80aa7f06fb
commit e5899c8e10

View File

@ -26,8 +26,7 @@ class CustomFormatter(logging.Formatter):
def format_time(self, record: Any, datefmt: Any = None) -> str:
now = datetime.datetime.now()
now = now.strftime("%H:%M:%S")
return now
return now.strftime("%H:%M:%S")
def format(self, record: Any) -> str:
log_fmt = self.FORMATS.get(record.levelno)