Skip to content

Commit

Permalink
Auto-format code using Clang-Format (#230)
Browse files Browse the repository at this point in the history
Co-authored-by: GitHub Actions <[email protected]>
  • Loading branch information
github-actions[bot] and actions-user authored Sep 5, 2024
1 parent 79ddb6f commit 70b64e5
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/acom_music_box/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,19 @@ def setup_logging(verbosity, color_output):
console_handler = logging.StreamHandler()

if color_output:
color_formatter = colorlog.ColoredFormatter( f'%(log_color)s{format_string}', datefmt=datefmt,
log_colors={'DEBUG': 'green', 'INFO': 'cyan', 'WARNING': 'yellow', 'ERROR': 'red', 'CRITICAL': 'bold_red'}
)
color_formatter = colorlog.ColoredFormatter(
f'%(log_color)s{format_string}',
datefmt=datefmt,
log_colors={
'DEBUG': 'green',
'INFO': 'cyan',
'WARNING': 'yellow',
'ERROR': 'red',
'CRITICAL': 'bold_red'})
console_handler.setFormatter(color_formatter)
else:
console_handler.setFormatter(formatter)

console_handler.setLevel(log_level)
logging.basicConfig(level=log_level, handlers=[console_handler])

Expand Down

0 comments on commit 70b64e5

Please sign in to comment.