summaryrefslogtreecommitdiff
path: root/buildstream
diff options
context:
space:
mode:
Diffstat (limited to 'buildstream')
-rw-r--r--buildstream/_artifactcache/cascache.py14
1 files changed, 4 insertions, 10 deletions
diff --git a/buildstream/_artifactcache/cascache.py b/buildstream/_artifactcache/cascache.py
index ff47532da..840e190f1 100644
--- a/buildstream/_artifactcache/cascache.py
+++ b/buildstream/_artifactcache/cascache.py
@@ -252,11 +252,8 @@ class CASCache(ArtifactCache):
raise ArtifactError("Failed to pull artifact {}: {}".format(
element._get_brief_display_key(), e)) from e
else:
- self.context.message(Message(
- None,
- MessageType.INFO,
- "Remote ({}) does not have {} cached".format(
- remote.spec.url, element._get_brief_display_key())
+ element.info("Remote ({}) does not have {} cached".format(
+ remote.spec.url, element._get_brief_display_key()
))
return False
@@ -344,11 +341,8 @@ class CASCache(ArtifactCache):
element.info("Pushed artifact {} -> {}".format(display_key, remote.spec.url))
pushed = True
else:
- self.context.message(Message(
- None,
- MessageType.INFO,
- "Remote ({}) already has {} cached".format(
- remote.spec.url, element._get_brief_display_key())
+ element.info("Remote ({}) already has {} cached".format(
+ remote.spec.url, element._get_brief_display_key()
))
return pushed