summaryrefslogtreecommitdiff
path: root/buildstream/_artifactcache/cascache.py
diff options
context:
space:
mode:
Diffstat (limited to 'buildstream/_artifactcache/cascache.py')
-rw-r--r--buildstream/_artifactcache/cascache.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/buildstream/_artifactcache/cascache.py b/buildstream/_artifactcache/cascache.py
index 1e84c282f..16789caed 100644
--- a/buildstream/_artifactcache/cascache.py
+++ b/buildstream/_artifactcache/cascache.py
@@ -262,6 +262,8 @@ class CASCache(ArtifactCache):
for remote in push_remotes:
remote.init()
+ element.info("Pushing {} -> {}".format(element._get_brief_display_key(), remote.spec.url))
+
try:
for ref in refs:
tree = self.resolve_ref(ref)
@@ -275,6 +277,8 @@ class CASCache(ArtifactCache):
if response.digest.hash == tree.hash and response.digest.size_bytes == tree.size_bytes:
# ref is already on the server with the same tree
+ element.info("Skipping {}, remote ({}) already has artifact cached".format(
+ element._get_brief_display_key(), remote.spec.url))
continue
except grpc.RpcError as e: