From 93f0b61749155ba600f38dff5604a68da548c486 Mon Sep 17 00:00:00 2001 From: Elliot Smith Date: Thu, 15 Oct 2015 15:45:13 +0300 Subject: 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 Signed-off-by: Ed Bartosh Signed-off-by: Richard Purdie --- bitbake/lib/toaster/toastergui/templates/builddashboard.html | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'bitbake/lib/toaster/toastergui/templates/builddashboard.html') 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 @@
- {% for error in logmessages %}{% if error.level == 2 %} -
-
{{error.message}}
-
- {% endif %} + {% for error in logmessages %} + {% if error.level == 2 or error.level == 3 %} +
+
{{error.message}}
+
+ {% endif %} {% endfor %}
-- cgit v1.2.3-54-g00ecf