From 6f4742bde6582b7d978d6d0711c6bd9bddaefb7f Mon Sep 17 00:00:00 2001 From: Zach White Date: Sun, 27 Jun 2021 19:09:17 -0700 Subject: [PATCH] log output tweaks --- lib/python/qmk/commands.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/lib/python/qmk/commands.py b/lib/python/qmk/commands.py index a351f2842e..08b9514718 100644 --- a/lib/python/qmk/commands.py +++ b/lib/python/qmk/commands.py @@ -419,6 +419,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) @@ -439,6 +441,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):') @@ -462,10 +469,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: