summaryrefslogtreecommitdiff
path: root/buildstream/_message.py
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-01-13 03:44:23 -0500
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-01-13 03:44:23 -0500
commit39f677c6c35f7696501972d0782ba8155837739c (patch)
treee0528e8c5564e4eefca335c54bc063f6a8ca2c6f /buildstream/_message.py
parentbd2834c67a97b80e181a58e56ca0bc1286ffba69 (diff)
downloadbuildstream-39f677c6c35f7696501972d0782ba8155837739c.tar.gz
_message.py: Hold on to the name of the action queue
Diffstat (limited to 'buildstream/_message.py')
-rw-r--r--buildstream/_message.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/buildstream/_message.py b/buildstream/_message.py
index e26c3e5d7..7e45f667a 100644
--- a/buildstream/_message.py
+++ b/buildstream/_message.py
@@ -40,12 +40,14 @@ class MessageType():
class Message():
def __init__(self, unique_id, message_type, message,
detail=None,
+ action_name=None,
elapsed=None,
logfile=None,
scheduler=False):
self.message_type = message_type # Message type
self.message = message # The message string
self.detail = detail # An additional detail string
+ self.action_name = action_name # Name of the task queue (fetch, refresh, build, etc)
self.elapsed = elapsed # The elapsed time, for SUCCESS and FAIL types
self.logfile = logfile # The log file path where commands took place
self.pid = os.getpid() # The process pid