summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/ui/toasterui.py
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/bb/ui/toasterui.py
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/bb/ui/toasterui.py')
-rw-r--r--bitbake/lib/bb/ui/toasterui.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/bitbake/lib/bb/ui/toasterui.py b/bitbake/lib/bb/ui/toasterui.py
index dbe0d0980a..0ed774ee7b 100644
--- a/bitbake/lib/bb/ui/toasterui.py
+++ b/bitbake/lib/bb/ui/toasterui.py
@@ -145,10 +145,12 @@ def main(server, eventHandler, params ):
145 event.levelno = formatter.ERROR 145 event.levelno = formatter.ERROR
146 146
147 buildinfohelper.store_log_event(event) 147 buildinfohelper.store_log_event(event)
148
148 if event.levelno >= formatter.ERROR: 149 if event.levelno >= formatter.ERROR:
149 errors = errors + 1 150 errors = errors + 1
150 elif event.levelno == formatter.WARNING: 151 elif event.levelno == formatter.WARNING:
151 warnings = warnings + 1 152 warnings = warnings + 1
153
152 # For "normal" logging conditions, don't show note logs from tasks 154 # For "normal" logging conditions, don't show note logs from tasks
153 # but do show them if the user has changed the default log level to 155 # but do show them if the user has changed the default log level to
154 # include verbose/debug messages 156 # include verbose/debug messages