summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/ui/toasterui.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/ui/toasterui.py')
-rw-r--r--bitbake/lib/bb/ui/toasterui.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/bitbake/lib/bb/ui/toasterui.py b/bitbake/lib/bb/ui/toasterui.py
index 007c6b6114..b9e8029da1 100644
--- a/bitbake/lib/bb/ui/toasterui.py
+++ b/bitbake/lib/bb/ui/toasterui.py
@@ -295,9 +295,17 @@ def main(server, eventHandler, params ):
295 main.shutdown = 1 295 main.shutdown = 1
296 pass 296 pass
297 except Exception as e: 297 except Exception as e:
298 # print errors to log
298 logger.error(e) 299 logger.error(e)
299 import traceback 300 import traceback
300 traceback.print_exc() 301 exception_data = traceback.format_exc()
302
303 # save them to database, if possible; if it fails, we already logged to console.
304 try:
305 buildinfohelper.store_log_error("%s\n%s" % (str(e), exception_data))
306 except Exception:
307 pass
308
301 pass 309 pass
302 310
303 if interrupted: 311 if interrupted: