mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-17 14:10:41 +01:00
Fixed weird formatting of colorized stdout stuff.
This commit is contained in:
parent
8a4e79e007
commit
b7bd3d414e
@ -137,9 +137,12 @@ class ColorizedFormatter(Formatter):
|
|||||||
color = ansi.RED
|
color = ansi.RED
|
||||||
elif record.levelno == logging.WARNING:
|
elif record.levelno == logging.WARNING:
|
||||||
color = ansi.YELLOW
|
color = ansi.YELLOW
|
||||||
return ''.join([color,
|
if color:
|
||||||
Formatter.format(self, record, *args, **kwargs),
|
return ''.join([color,
|
||||||
ansi.RESET])
|
Formatter.format(self, record, *args, **kwargs),
|
||||||
|
ansi.RESET])
|
||||||
|
else:
|
||||||
|
return Formatter.format(self, record, *args, **kwargs)
|
||||||
else:
|
else:
|
||||||
return Formatter.format(self, record, *args, **kwargs)
|
return Formatter.format(self, record, *args, **kwargs)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user