Patchwork [bitbake-devel,80/94] bitbake: dsi: add exception dumping code

login
register
mail settings
Submitter Alexandru DAMIAN
Date Sept. 24, 2013, 4:52 p.m.
Message ID <790b6b99763ec970c919e4e8e6d3c6b39972ec68.1380041477.git.alexandru.damian@intel.com>
Download mbox | patch
Permalink /patch/58859/
State New
Headers show

Comments

Alexandru DAMIAN - Sept. 24, 2013, 4:52 p.m.
From: Alexandru DAMIAN <alexandru.damian@intel.com>

Dump detailed information about unexpected
exceptions during a run. This has effect only
when running DSI from command line, since in
background mode everything is dumped to /dev/null

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
---
 bitbake/lib/bb/ui/dsi.py | 2 ++
 1 file changed, 2 insertions(+)

Patch

diff --git a/bitbake/lib/bb/ui/dsi.py b/bitbake/lib/bb/ui/dsi.py
index e5447ec..22cff5d 100644
--- a/bitbake/lib/bb/ui/dsi.py
+++ b/bitbake/lib/bb/ui/dsi.py
@@ -540,6 +540,8 @@  def main(server, eventHandler, params, tf = TerminalFilter):
             pass
         except Exception as e:
             print(e)
+            import traceback
+            traceback.print_exc()
             pass
 
     summary = ""