summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan van Berkom <tristan@codethink.co.uk>2020-11-25 20:02:54 +0900
committerTristan van Berkom <tristan@codethink.co.uk>2020-12-07 17:53:03 +0900
commit837acb9c3ce9ae17d12f22ee3b2e42dd7223bccf (patch)
tree1d4fa0b0593da4ca6aea24d3bcd4cf563e7ded99
parent965da0ad04af8649f48cfeffd90174e147052494 (diff)
downloadbuildstream-837acb9c3ce9ae17d12f22ee3b2e42dd7223bccf.tar.gz
_artifactcache.py: Fixed logging messages to display cache keys
This was recently regressed to logging a DisplayKey object and was not fixed to display the DisplayKey.brief, as it had already been fixed in other log messages.
-rw-r--r--src/buildstream/_artifactcache.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buildstream/_artifactcache.py b/src/buildstream/_artifactcache.py
index c3d96166c..09804fe01 100644
--- a/src/buildstream/_artifactcache.py
+++ b/src/buildstream/_artifactcache.py
@@ -146,10 +146,10 @@ class ArtifactCache(AssetCache):
for remote in index_remotes:
remote.init()
- element.status("Pushing artifact {} -> {}".format(display_key, remote))
+ element.status("Pushing artifact {} -> {}".format(display_key.brief, remote))
if self._push_artifact_proto(element, artifact, artifact_digest, remote):
- element.info("Pushed artifact {} -> {}".format(display_key, remote))
+ element.info("Pushed artifact {} -> {}".format(display_key.brief, remote))
pushed = True
else:
element.info("Remote ({}) already has artifact {} cached".format(remote, display_key.brief))