From b4022b9795c39b956fcb105f034fef9d16d5b8c5 Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Wed, 25 May 2016 20:55:16 +0200 Subject: [PATCH] quteproc: fix log_color in log message This actually uses the escape code, not just the color name. --- tests/end2end/fixtures/quteprocess.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/end2end/fixtures/quteprocess.py b/tests/end2end/fixtures/quteprocess.py index aace5374e..7581fc232 100644 --- a/tests/end2end/fixtures/quteprocess.py +++ b/tests/end2end/fixtures/quteprocess.py @@ -95,9 +95,10 @@ class LogLine(testprocess.Line): This returns a line like qute without --json-logging would produce. """ + log_color = log.LOG_COLORS[self.levelname] format_dict = { 'asctime': self.timestamp.strftime(log.DATEFMT), - 'log_color': log.LOG_COLORS[self.levelname], + 'log_color': log.ColoredFormatter.COLOR_ESCAPES[log_color], 'levelname': self.levelname, 'reset': log.ColoredFormatter.RESET_ESCAPE, 'name': self.category,