diff options
author | Keir Mierle <keir@google.com> | 2019-12-26 12:45:02 -0800 |
---|---|---|
committer | Keir Mierle <keir@google.com> | 2019-12-26 12:45:02 -0800 |
commit | 313e26058a8eba0884a0f673a2f44ba336f4d71a (patch) | |
tree | a165275828780abb2fc01634be463b6ee2e2f9cd /pw_cli | |
parent | c15a98852f6960c0a94f992492cbe763584bd62d (diff) | |
download | pigweed-313e26058a8eba0884a0f673a2f44ba336f4d71a.tar.gz |
pw_watch: Set log level for build result log line
Change-Id: I4323441465f19323771e253b5ac3062f9db7d124
Diffstat (limited to 'pw_cli')
-rwxr-xr-x | pw_cli/py/pw_cli/watch.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pw_cli/py/pw_cli/watch.py b/pw_cli/py/pw_cli/watch.py index 315470825..6bbe93860 100755 --- a/pw_cli/py/pw_cli/watch.py +++ b/pw_cli/py/pw_cli/watch.py @@ -170,10 +170,13 @@ class PigweedBuildWatcher(FileSystemEventHandler): build_ok = (result.returncode == 0) if build_ok: + level = logging.INFO tag = '(OK)' else: + level = logging.ERROR tag = '(FAIL)' - _LOG.info(f'[{i}/{num_builds}] Finished build: {build_dir} {tag}') + _LOG.log(level, + f'[{i}/{num_builds}] Finished build: {build_dir} {tag}') builds_succeeded.append(build_ok) if all(builds_succeeded): |