diff options
author | Alexandru DAMIAN <alexandru.damian@intel.com> | 2014-11-25 10:12:46 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-11-28 14:02:58 +0000 |
commit | af1f9fda8b295d277a6967453b2d03e43474ab68 (patch) | |
tree | 0e6f9ab6194767449872e6bc0e4011026e4cc042 /bitbake/lib/bb/ui/toasterui.py | |
parent | 707a960ffa20d6093ff787084e0b0f50a7b8305e (diff) | |
download | poky-af1f9fda8b295d277a6967453b2d03e43474ab68.tar.gz |
bitbake: toaster: display Toaster exceptions and other fixes
Changing ToasterUI to log toaster exceptions on a different level than
build errors.
Updating the build dashboard to show Toaster exceptions.
We add extra logging to console for exceptions.
Fixed a problem where packages database entries were created instead of
being looked up in the database, conficting with entries created to
satisfy dependency information.
Toaster now checks for invalid states at startup and performs needed
cleanups.
Removed loading reference to jquery-ui.min.css as we do not have this
file.
(Bitbake rev: 2378812bc24d433125fb940f110154f0ce638448)
Signed-off-by: Alexandru DAMIAN <alexandru.damian@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.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/bitbake/lib/bb/ui/toasterui.py b/bitbake/lib/bb/ui/toasterui.py index b9e8029da1..9bd04df1c6 100644 --- a/bitbake/lib/bb/ui/toasterui.py +++ b/bitbake/lib/bb/ui/toasterui.py | |||
@@ -299,12 +299,13 @@ def main(server, eventHandler, params ): | |||
299 | logger.error(e) | 299 | logger.error(e) |
300 | import traceback | 300 | import traceback |
301 | exception_data = traceback.format_exc() | 301 | exception_data = traceback.format_exc() |
302 | print(exception_data) | ||
302 | 303 | ||
303 | # save them to database, if possible; if it fails, we already logged to console. | 304 | # save them to database, if possible; if it fails, we already logged to console. |
304 | try: | 305 | try: |
305 | buildinfohelper.store_log_error("%s\n%s" % (str(e), exception_data)) | 306 | buildinfohelper.store_log_exception("%s\n%s" % (str(e), exception_data)) |
306 | except Exception: | 307 | except Exception as ce: |
307 | pass | 308 | print("CRITICAL: failed to to save toaster exception to the database: %s" % str(ce)) |
308 | 309 | ||
309 | pass | 310 | pass |
310 | 311 | ||