[oe-commits] [bitbake] 07/08: toasterui: Remove the excessive exception logging

git at git.openembedded.org git at git.openembedded.org
Wed Mar 23 17:56:59 UTC 2016


rpurdie pushed a commit to branch master
in repository bitbake.

commit a21dc134bdce2c9eb5e47c770094660f0c45c398
Author: Michael Wood <michael.g.wood at intel.com>
AuthorDate: Thu Mar 17 11:49:16 2016 +0000

    toasterui: Remove the excessive exception logging
    
    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.
    
    Signed-off-by: Michael Wood <michael.g.wood at intel.com>
    Signed-off-by: Elliot Smith <elliot.smith at intel.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 lib/bb/ui/toasterui.py | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/lib/bb/ui/toasterui.py b/lib/bb/ui/toasterui.py
index eee8d14..6b64b4a 100644
--- a/lib/bb/ui/toasterui.py
+++ b/lib/bb/ui/toasterui.py
@@ -446,13 +446,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))

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list