We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 69ed2de commit 979423dCopy full SHA for 979423d
normalize_repos/log.py
@@ -13,14 +13,6 @@ class IndentFormatter(logging.Formatter):
13
indentation using ``'\t'`` characters.
14
"""
15
16
- color_map = {
17
- logging.CRITICAL: 31, # red
18
- logging.ERROR: 31, # red
19
- logging.WARNING: 33, # yellow
20
- SUCCESS: 32, # green
21
- logging.INFO: 34, # blue
22
- }
23
-
24
@staticmethod
25
def identify_cut(filenames):
26
@@ -59,12 +51,10 @@ def update_format(self, record):
59
51
60
52
61
53
prefix = "\u001b["
62
- color = f"{self.color_map[record.levelno]}m"
63
54
bold = "1m"
64
55
reset = "0m"
65
56
self._style._fmt = (
66
- "%(asctime)s │ "
67
- f"{prefix}{color}%(levelname)-8s{prefix}{reset} │ "
57
+ "::%(levelname)-8s:: %(asctime)s │ "
68
58
f"%(indent)s{prefix}{bold}%(function)s{prefix}{reset}: "
69
"%(message)s"
70
)
0 commit comments