diff options
author | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2017-09-01 18:28:25 -0400 |
---|---|---|
committer | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2017-09-01 20:21:48 -0400 |
commit | 328dddf0f958508aa8bec4db87b4349041662e94 (patch) | |
tree | aab2131b0dece129a7497ffbae8396081b49554a /buildstream | |
parent | 3d1a61d22b9a8097152784b7231c727770784d89 (diff) | |
download | buildstream-328dddf0f958508aa8bec4db87b4349041662e94.tar.gz |
_frontend/main.py: Avoid loading messages when not in verbose
This is currently a workaround for test cases where we need to
parse the stdout but have no way to separate it from stderr.
However, the default is currently verbose and I think it's
not an issue to lose these loading messages without when
passing --no-verbose.
Diffstat (limited to 'buildstream')
-rw-r--r-- | buildstream/_frontend/main.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/buildstream/_frontend/main.py b/buildstream/_frontend/main.py index 9dff2605e..566a98a2a 100644 --- a/buildstream/_frontend/main.py +++ b/buildstream/_frontend/main.py @@ -1063,6 +1063,9 @@ class App(): # Tickers at initialization time # def load_ticker(self, name): + if not self.context.log_verbose: + return + if name: self.file_count += 1 @@ -1077,6 +1080,9 @@ class App(): click.echo('', err=True) def resolve_ticker(self, name): + if not self.context.log_verbose: + return + if name: self.resolve_count += 1 @@ -1092,9 +1098,15 @@ class App(): click.echo('', err=True) def remote_ticker(self, name): + if not self.context.log_verbose: + return + click.echo("Fetching artifact list from {}".format(name), err=True) def cache_ticker(self, name): + if not self.context.log_verbose: + return + if name: self.cache_count += 1 |