summaryrefslogtreecommitdiff
path: root/buildstream
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2018-03-13 16:55:50 +0900
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2018-03-13 16:57:15 +0900
commit5e299889e846c85973c6450384a09f8f623310be (patch)
treeb0f398a985ab7852272d17552c04adbf66a2541c /buildstream
parent10fa1b4ec2ac5205230397b63d5652d7db2bb268 (diff)
downloadbuildstream-5e299889e846c85973c6450384a09f8f623310be.tar.gz
_frontend/widget.py: Never abbreviate frontend messages
Messages which come from the frontend do not have any backing log file where the remainder of the message can be reviewed. In the case of lengthly detailed messages originating from the frontend, we dont allow any abbreviation of the message.
Diffstat (limited to 'buildstream')
-rw-r--r--buildstream/_frontend/widget.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/buildstream/_frontend/widget.py b/buildstream/_frontend/widget.py
index ecf066bd8..34d0919aa 100644
--- a/buildstream/_frontend/widget.py
+++ b/buildstream/_frontend/widget.py
@@ -405,13 +405,16 @@ class LogLine(Widget):
# Now add some custom things
if message.detail is not None:
+ # Identify frontend messages, we never abbreviate these
+ frontend_message = not (message.task_id or message.unique_id)
+
# Split and truncate message detail down to message_lines lines
lines = message.detail.splitlines(True)
n_lines = len(lines)
abbrev = False
if message.message_type not in [MessageType.FAIL, MessageType.BUG] \
- and n_lines > self.message_lines:
+ and not frontend_message and n_lines > self.message_lines:
abbrev = True
lines = lines[0:self.message_lines]
else: