Skip to content

Commit bdb87b6

Browse files
committed
Use safer color (green) for debug mode
See linked article for why that might be a good idea.
1 parent 136ec98 commit bdb87b6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎src/docstub/_report.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,9 @@ class ReportHandler(logging.StreamHandler):
228228
level_to_color : ClassVar[dict[int, str]]
229229
"""
230230

231+
# Use "safe" colors (https://blog.xoria.org/terminal-colors/)
231232
level_to_color = {
232-
logging.DEBUG: "bright_black",
233+
logging.DEBUG: "green",
233234
logging.INFO: "cyan",
234235
logging.WARNING: "yellow",
235236
logging.ERROR: "red",

0 commit comments

Comments
 (0)