diff options
author | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2018-01-15 15:25:35 +0000 |
---|---|---|
committer | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2018-01-15 15:25:35 +0000 |
commit | a159310c29636cd5f6b30e9c6303703c54d75595 (patch) | |
tree | 5d61a2ce8c59e1d8c55a6ad09d21a2063c0252f3 /buildstream/_pipeline.py | |
parent | 571406d44dd1aafa8f1518a14fc23e3f111145cd (diff) | |
download | buildstream-sam/improve-cache-warnings.tar.gz |
Shorten the warnings raised when remote cache initialization failssam/improve-cache-warnings
Before:
[--:--:--] WARNING Failed to fetch remote refs from ssh://ostree@ostree.baserock.org:22000/cache: BuildStream did not connect successfully to the shared cache ssh://ostree@ostree.baserock.org:22000/cache: SSH error: ssh: connect to host ostree.baserock.org port 22000: Connection refused
After:
[--:--:--] WARNING Failed to fetch remote refs from ssh://ostree@ostree.baserock.org:22000/cache. ssh: connect to host ostree.baserock.org port 22000: Connection refused
Diffstat (limited to 'buildstream/_pipeline.py')
-rw-r--r-- | buildstream/_pipeline.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/buildstream/_pipeline.py b/buildstream/_pipeline.py index baea6c137..015918dc1 100644 --- a/buildstream/_pipeline.py +++ b/buildstream/_pipeline.py @@ -191,7 +191,7 @@ class Pipeline(): def initialize_remote_caches(self, artifact_cache_specs): def remote_failed(url, error): - self.message(MessageType.WARN, "Failed to fetch remote refs from {}: {}\n".format(url, error)) + self.message(MessageType.WARN, "Failed to fetch remote refs from {}: {}".format(url, error)) with self.timed_activity("Initializing remote caches", silent_nested=True): self.artifacts.set_remotes(artifact_cache_specs, on_failure=remote_failed) |