Skip to content

Commit

Permalink
run pre-commit again
Browse files Browse the repository at this point in the history
  • Loading branch information
rkaminsk committed Feb 23, 2024
1 parent c2ba3d3 commit 1e309dd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/fillname/utils/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,11 @@ def configure_logging(stream: TextIO, level: int, use_color: bool) -> None:
"""
Configure application logging.
"""

def format_str(color: str) -> str:
if use_color:
return f"{COLORS[color]}%(levelname)s:{COLORS['GREY']} - %(message)s{COLORS['NORMAL']}"
return "%(levelname)s: - %(message)s" # nocoverage
return "%(levelname)s: - %(message)s" # nocoverage

def make_handler(level: int, color: str) -> "logging.StreamHandler[TextIO]":
handler = logging.StreamHandler(stream)
Expand Down

0 comments on commit 1e309dd

Please sign in to comment.