Skip to content

Commit

Permalink
log output tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
skullydazed committed Jun 28, 2021
1 parent acce25b commit a25c8a0
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions lib/python/qmk/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,8 @@ def do_compile(keyboard, keymap, parallel, target=None, filters=None, environmen

# Compile the firmware, if we're able to
if command == 'multiple':
cli.log.info('Building {fg_cyan}%s{fg_reset} with keymap {fg_cyan}%s', keyboard, keymap)

returncodes = []
for keyboard, keymap in keyboard_keymap_iter(keyboard, keymap, filters):
command = create_make_command(keyboard, keymap, target=target, parallel=1, silent=multiple_compiles, **envs)
Expand All @@ -317,6 +319,11 @@ def do_compile(keyboard, keymap, parallel, target=None, filters=None, environmen
cli.echo('\tkeyboard: {fg_cyan}%s{fg_reset} keymap: {fg_cyan}%s', keyboard, keymap)

elif command:
if target:
cli.log.info('Building {fg_cyan}%s{fg_reset} with keymap {fg_cyan}%s{fg_reset} and target {fg_cyan}%s', keyboard, keymap, target)
else:
cli.log.info('Building {fg_cyan}%s{fg_reset} with keymap {fg_cyan}%s', keyboard, keymap)

if _execute_compile(keyboard, keymap, command, target) != 0:
print()
cli.log.error('Could not compile all targets, look above this message for more details. Failing target(s):')
Expand All @@ -340,10 +347,6 @@ def _execute_compile(keyboard, keymap, command, target, returncodes=None):
cli.log.debug('Skipping keyboard %s, no %s keymap found.', keyboard, keymap)
return 0

if target:
cli.log.info('Building firmware for {fg_cyan}%s{fg_reset} with keymap {fg_cyan}%s{fg_reset} and target {fg_cyan}%s', keyboard, keymap, target)
else:
cli.log.info('Building firmware for {fg_cyan}%s{fg_reset} with keymap {fg_cyan}%s', keyboard, keymap)
cli.log.debug('Running make command: {fg_blue}%s', ' '.join(command))

if not cli.args.dry_run:
Expand Down

0 comments on commit a25c8a0

Please sign in to comment.