summaryrefslogtreecommitdiff
path: root/buildstream/_artifactcache
diff options
context:
space:
mode:
authorJosh Smith <joshsmith@codethink.co.uk>2018-07-19 16:35:00 +0100
committerTristan Van Berkom <tristan.van.berkom@gmail.com>2018-07-23 09:22:39 +0000
commit1d36df25de46979245a13f4a9149ca1eec30c4eb (patch)
treea50215ce199d9716c94be46c289516efff85c9de /buildstream/_artifactcache
parent6b82e476cbf079c7922b22b2df3946ba9b231c3c (diff)
downloadbuildstream-1d36df25de46979245a13f4a9149ca1eec30c4eb.tar.gz
cascache.py: Add pull info detailing which remote is being pulled fromQinusty/275
Work towards fixing issue #275
Diffstat (limited to 'buildstream/_artifactcache')
-rw-r--r--buildstream/_artifactcache/cascache.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/buildstream/_artifactcache/cascache.py b/buildstream/_artifactcache/cascache.py
index 16789caed..a540c8c61 100644
--- a/buildstream/_artifactcache/cascache.py
+++ b/buildstream/_artifactcache/cascache.py
@@ -221,6 +221,8 @@ class CASCache(ArtifactCache):
try:
remote.init()
+ element.info("Pulling {} <- {}".format(element._get_brief_display_key(), remote.spec.url))
+
request = buildstream_pb2.GetReferenceRequest()
request.key = ref
response = remote.ref_storage.GetReference(request)
@@ -238,6 +240,7 @@ class CASCache(ArtifactCache):
except grpc.RpcError as e:
if e.code() != grpc.StatusCode.NOT_FOUND:
+ element.info("{} not found at remote {}".format(element._get_brief_display_key(), remote.spec.url))
raise
return False