summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2020-03-30 13:17:16 +0200
committerJürg Billeter <j@bitron.ch>2020-04-20 14:27:16 +0200
commit90eecfaa1739189ae10d3735af28ba8a80f98f4c (patch)
tree033b5a1799c5b6e865f8588e72096b14ee7b9b34
parent74bbafa4c29caff91574316fb25fe2a5f9ff5fbf (diff)
downloadbuildstream-90eecfaa1739189ae10d3735af28ba8a80f98f4c.tar.gz
_artifactcache.py: Fix misleading log message when pulling artifacts
Do not print message "Pulled artifact" when pulling the artifact proto without data. This matches the log messages in `SourceCache`.
-rw-r--r--src/buildstream/_artifactcache.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/buildstream/_artifactcache.py b/src/buildstream/_artifactcache.py
index f1648e947..4290e92cb 100644
--- a/src/buildstream/_artifactcache.py
+++ b/src/buildstream/_artifactcache.py
@@ -281,7 +281,6 @@ class ArtifactCache(BaseCache):
element.status("Pulling artifact {} <- {}".format(display_key, remote))
artifact = self._pull_artifact_proto(element, key, remote)
if artifact:
- element.info("Pulled artifact {} <- {}".format(display_key, remote))
break
element.info("Remote ({}) does not have artifact {} cached".format(remote, display_key))
@@ -307,7 +306,7 @@ class ArtifactCache(BaseCache):
element.status("Pulling data for artifact {} <- {}".format(display_key, remote))
if self._pull_artifact_storage(element, artifact, remote, pull_buildtrees=pull_buildtrees):
- element.info("Pulled data for artifact {} <- {}".format(display_key, remote))
+ element.info("Pulled artifact {} <- {}".format(display_key, remote))
return True
element.info("Remote ({}) does not have artifact {} cached".format(remote, display_key))