Minor fixes
Signed-off-by: András Schmelczer <andras@schmelczer.dev>
This commit is contained in:
parent
3730a884b0
commit
709fb36701
1 changed files with 73 additions and 60 deletions
|
|
@ -15,7 +15,7 @@ class CustomFormatter(logging.Formatter):
|
|||
logging.CRITICAL: BOLD_RED + self.fmt + RESET,
|
||||
}
|
||||
|
||||
def format(self, record: logging.LogRecord) -> None:
|
||||
def format(self, record: logging.LogRecord) -> str:
|
||||
log_fmt = self.FORMATS.get(record.levelno)
|
||||
formatter = logging.Formatter(log_fmt)
|
||||
return formatter.format(record)
|
||||
|
|
|
|||
Loading…
Reference in a new issue