Minor patch

This commit is contained in:
Miroslav Stampar
2018-07-27 00:01:23 +02:00
parent 5f1bae86b0
commit 22c7bc54b4
3 changed files with 4 additions and 4 deletions

View File

@@ -182,7 +182,7 @@ class ColorizingStreamHandler(logging.StreamHandler):
message = message.replace(counter, ''.join((self.csi, str(self.color_map["yellow"] + 30), 'm', counter, reset)), 1)
match = re.search(r"'([^']+)'", message) # single-quoted
if match:
if level != "PAYLOAD" and match:
string = match.group(1)
if not message.endswith(self.reset):
reset = self.reset