summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/templates/builddashboard.html
diff options
context:
space:
mode:
authorElliot Smith <elliot.smith@intel.com>2015-10-15 15:45:13 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-10-16 14:13:22 +0100
commit93f0b61749155ba600f38dff5604a68da548c486 (patch)
treea38fc2e85a104f2b3b4b1665b0e5251563547c2d /bitbake/lib/toaster/toastergui/templates/builddashboard.html
parent069a611097265c0100582dfb69dfdddbc08a31fc (diff)
downloadpoky-93f0b61749155ba600f38dff5604a68da548c486.tar.gz
bitbake: 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] (Bitbake rev: b6eacbca9cacb607de864ab7d093deb296da8226) 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 'bitbake/lib/toaster/toastergui/templates/builddashboard.html')
-rw-r--r--bitbake/lib/toaster/toastergui/templates/builddashboard.html11
1 files changed, 6 insertions, 5 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/builddashboard.html b/bitbake/lib/toaster/toastergui/templates/builddashboard.html
index aa991348b8..fc6cae6f29 100644
--- a/bitbake/lib/toaster/toastergui/templates/builddashboard.html
+++ b/bitbake/lib/toaster/toastergui/templates/builddashboard.html
@@ -69,11 +69,12 @@
69 <div class="accordion-body collapse in" id="collapse-errors"> 69 <div class="accordion-body collapse in" id="collapse-errors">
70 <div class="accordion-inner"> 70 <div class="accordion-inner">
71 <div class="span10"> 71 <div class="span10">
72 {% for error in logmessages %}{% if error.level == 2 %} 72 {% for error in logmessages %}
73 <div class="alert alert-error"> 73 {% if error.level == 2 or error.level == 3 %}
74 <pre>{{error.message}}</pre> 74 <div class="alert alert-error">
75 </div> 75 <pre>{{error.message}}</pre>
76 {% endif %} 76 </div>
77 {% endif %}
77 {% endfor %} 78 {% endfor %}
78 </div> 79 </div>
79 </div> 80 </div>