Skip to contentSkip to conversation

toasterui: Remove the excessive exception logging

PATCH New Elliot Smith 1 participant 1 message Mar 17, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 toasterui: Remove the excessive exception logging

From: Michael Wood <[email protected]>

Remove the very verbose log dump from toasterui. This generates several megabytes of not that useful debug information and actually hinders finding the original exception.

---
 bitbake/lib/bb/ui/toasterui.py | 7 -------
 1 file changed, 7 deletions(-)
bitbake/lib/bb/ui/toasterui.py +0 -7
index ee40110..29aed2e 100644
@@ -447,13 +447,6 @@ def main(server, eventHandler, params):
             exception_data = traceback.format_exc()
             logger.error("%s\n%s" , e, exception_data)
 
-            _, _, tb = sys.exc_info()
-            if tb is not None:
-                curr = tb
-                while curr is not None:
-                    logger.error("Error data dump %s\n%s\n" , traceback.format_tb(curr,1), pformat(curr.tb_frame.f_locals))
-                    curr = curr.tb_next
-
             # save them to database, if possible; if it fails, we already logged to console.
             try:
                 buildinfohelper.store_log_exception("%s\n%s" % (str(e), exception_data))
Signature · 12 lines
1.9.3

---------------------------------------------------------------------
Intel Corporation (UK) Limited
Registered No. 1134945 (England)
Registered Office: Pipers Way, Swindon SN3 1RJ
VAT No: 860 2173 47

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.