Minor patch

This commit is contained in:
Miroslav Stampar
2021-01-29 14:38:13 +01:00
parent accfbf958e
commit 71c141ef86
3 changed files with 4 additions and 4 deletions

View File

@@ -22,8 +22,8 @@ try:
from thirdparty.ansistrm.ansistrm import ColorizingStreamHandler
class _ColorizingStreamHandler(ColorizingStreamHandler):
def colorize(self, message, levelno):
if levelno in self.level_map and self.is_tty:
def colorize(self, message, levelno, force=False):
if levelno in self.level_map and self.is_tty or force:
bg, fg, bold = self.level_map[levelno]
params = []