summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2019-03-25 07:47:30 +0100
committerJürg Billeter <j@bitron.ch>2019-03-25 10:24:41 +0100
commitf73d05b3b216e238f0d54655901374ff1fc6af5f (patch)
tree2d44b4e867f765ec2d4b035d88ba80de1af6f009
parent80db4aee2d3628557c14b54e104c011a551b1bd5 (diff)
downloadbuildstream-f73d05b3b216e238f0d54655901374ff1fc6af5f.tar.gz
_stream.py: Check whether logs are cached in artifact_log()
-rw-r--r--buildstream/_stream.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/buildstream/_stream.py b/buildstream/_stream.py
index 262b38852..d77b8d33b 100644
--- a/buildstream/_stream.py
+++ b/buildstream/_stream.py
@@ -523,6 +523,9 @@ class Stream():
if not obj._cached():
self._message(MessageType.WARN, "{} is not cached".format(ref))
continue
+ elif not obj._cached_logs():
+ self._message(MessageType.WARN, "{} is cached without log files".format(ref))
+ continue
logsdirs.append(self._artifacts.get_artifact_logs(ref))