bitbake: toasterui: refactor log saving and save out-of-build errors
authorAlexandru DAMIAN <alexandru.damian@intel.com>
Thu, 24 Jul 2014 17:20:25 +0000 (18:20 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 29 Aug 2014 12:56:48 +0000 (13:56 +0100)
commit6ef28a249f22b36f4ab802169074f3e8507a80d4
tree52d46aa73c53273622962ce6e696cf14e18b28de
parent15f41984e732d6f06756983ae22dab1184f28f3e
bitbake: toasterui: refactor log saving and save out-of-build errors

We refactor log saving to go through only one code path.

All logs that happened outside the build (i.e. before build
starting) now will be logged to either toaster_ui.log if the
build command ran in interactive mode, or to the build request
errors if the command ran in managed mode.

This enables proper display of error logs in project page.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/lib/bb/ui/buildinfohelper.py
bitbake/lib/bb/ui/toasterui.py