summaryrefslogtreecommitdiffstats
path: root/lib/bb/ui/toasterui.py
diff options
context:
space:
mode:
authorAlexandru DAMIAN <alexandru.damian@intel.com>2015-06-17 17:30:34 +0100
committerAlexandru DAMIAN <alexandru.damian@intel.com>2015-06-25 11:10:06 +0100
commit44f37394ed3e4ca02f940be172fe4395b0ee0f7d (patch)
treec3ae8d70c53939c9fdeea9c2586f20bc2c877db5 /lib/bb/ui/toasterui.py
parent4b92add34167304b45c66b9726cbc64bc0f74d9f (diff)
downloadbitbake-44f37394ed3e4ca02f940be172fe4395b0ee0f7d.tar.gz
toaster: refactor build model
We remove the "timespent", "errors_no" and "warnings_no" fields in favor of computing the needed values at runtime. This prevents inconsistencies in the UI. Also removeing all references to BuildRequests from the interface - all build details now display in the build dashboard. Minor fixes related to data logging. Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Diffstat (limited to 'lib/bb/ui/toasterui.py')
-rw-r--r--lib/bb/ui/toasterui.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/bb/ui/toasterui.py b/lib/bb/ui/toasterui.py
index 9c59fd07c..28fdd8200 100644
--- a/lib/bb/ui/toasterui.py
+++ b/lib/bb/ui/toasterui.py
@@ -140,6 +140,9 @@ def main(server, eventHandler, params ):
continue
if isinstance(event, logging.LogRecord):
+ if event.levelno == -1:
+ event.levelno = format.ERROR
+
buildinfohelper.store_log_event(event)
if event.levelno >= format.ERROR:
errors = errors + 1