diff options
author | Josh Smith <qinusty@gmail.com> | 2018-09-12 10:23:51 +0100 |
---|---|---|
committer | Josh Smith <qinusty@gmail.com> | 2018-09-20 09:30:30 +0100 |
commit | 283ff3fcc1123a48d8143adff105265a7f40cac2 (patch) | |
tree | 6328c176a38813413ed50fcab33e6aeedec4d313 /buildstream | |
parent | bb66744d654ae02087b0866061d25da317c592d5 (diff) | |
download | buildstream-283ff3fcc1123a48d8143adff105265a7f40cac2.tar.gz |
cascache.py: Modify messaging API calls
Both pulling and pushing INFO messages are now status messages.
Calls to the messaging API through `self.context.message()` have now
been switched to `element.info`.
Diffstat (limited to 'buildstream')
-rw-r--r-- | buildstream/_artifactcache/cascache.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/buildstream/_artifactcache/cascache.py b/buildstream/_artifactcache/cascache.py index 97bdedf56..b6b1d436d 100644 --- a/buildstream/_artifactcache/cascache.py +++ b/buildstream/_artifactcache/cascache.py @@ -249,11 +249,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 |