diff options
author | Elliot Smith <elliot.smith@intel.com> | 2015-10-15 15:45:13 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-10-16 14:06:45 +0100 |
commit | b6eacbca9cacb607de864ab7d093deb296da8226 (patch) | |
tree | 05b24619a49872813c0e9c59f8fea2ee27e4f908 /lib/toaster/toastergui | |
parent | 8795667d03bd8705d7e13c5d3d6bb6da371fa91d (diff) | |
download | bitbake-b6eacbca9cacb607de864ab7d093deb296da8226.tar.gz |
toaster: Record critical errors
Critical errors (where a build failed for reasons of
misconfiguration, such as a machine being specified which is not
in a project's layers) were being ignored (only log records
up to ERROR level were being logged to Toaster's db). This meant that
the build would fail but would not correctly report why.
Add support for CRITICAL error levels to the LogMessage model,
include errors at this level in the errors property for a build,
and show errors at this level in the build dashboard.
[YOCTO #8320]
Signed-off-by: Elliot Smith <elliot.smith@intel.com>
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/toaster/toastergui')
-rw-r--r-- | lib/toaster/toastergui/templates/builddashboard.html | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/toaster/toastergui/templates/builddashboard.html b/lib/toaster/toastergui/templates/builddashboard.html index aa991348b..fc6cae6f2 100644 --- a/lib/toaster/toastergui/templates/builddashboard.html +++ b/lib/toaster/toastergui/templates/builddashboard.html @@ -69,11 +69,12 @@ <div class="accordion-body collapse in" id="collapse-errors"> <div class="accordion-inner"> <div class="span10"> - {% for error in logmessages %}{% if error.level == 2 %} - <div class="alert alert-error"> - <pre>{{error.message}}</pre> - </div> - {% endif %} + {% for error in logmessages %} + {% if error.level == 2 or error.level == 3 %} + <div class="alert alert-error"> + <pre>{{error.message}}</pre> + </div> + {% endif %} {% endfor %} </div> </div> |