diff options
author | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2017-04-13 23:29:53 +0900 |
---|---|---|
committer | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2017-04-13 23:29:53 +0900 |
commit | db6f17a2cb07fe03a2c6d069f556f4e8cc09d523 (patch) | |
tree | 54bb4cdcbf935ec606d23d906d489cb2f7055d3d /buildstream/_message.py | |
parent | 64b9efe3d7c02a62b8568211f8065802453a128e (diff) | |
download | buildstream-db6f17a2cb07fe03a2c6d069f556f4e8cc09d523.tar.gz |
_message.py: Added new BUG message type
To handle the unhandled exceptions and report them to the
frontend as bugs.
Diffstat (limited to 'buildstream/_message.py')
-rw-r--r-- | buildstream/_message.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/buildstream/_message.py b/buildstream/_message.py index 27c097eb1..811dd0160 100644 --- a/buildstream/_message.py +++ b/buildstream/_message.py @@ -30,6 +30,7 @@ class MessageType(): WARN = "warning" # Warning messages ERROR = "error" # Error messages LOG = "log" # Messages for log files _only_, never in the frontend + BUG = "bug" # An unhandled exception was raised in a plugin # Timed Messages: SUCCESS and FAIL have duration timestamps START = "start" # Status start message @@ -43,7 +44,8 @@ unconditional_messages = [ MessageType.INFO, MessageType.WARN, MessageType.ERROR, - MessageType.FAIL + MessageType.FAIL, + MessageType.BUG ] |