From 2f00b2605353b9757a40636870ad20ee70bcab9d Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Thu, 31 Mar 2016 12:46:38 +0100 Subject: [PATCH] scripts, lib: Don't limit traceback lengths to arbitrary values There appears to have been a lot of copy and pasting of the code which prints tracebacks upon failure and limits the stack trace to 5 entries. This obscures the real error and is very confusing to the user it look me an age to work out why some tracebacks weren't useful. This patch removes the limit, making tracebacks much more useful for debugging. [YOCTO #9230] Signed-off-by: Richard Purdie --- scripts/yocto-bsp | 2 +- scripts/yocto-kernel | 2 +- scripts/yocto-layer | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/yocto-bsp b/scripts/yocto-bsp index 2d9453fbe8f..82a050ebdca 100755 --- a/scripts/yocto-bsp +++ b/scripts/yocto-bsp @@ -151,6 +151,6 @@ if __name__ == "__main__": except Exception: ret = 1 import traceback - traceback.print_exc(5) + traceback.print_exc() sys.exit(ret) diff --git a/scripts/yocto-kernel b/scripts/yocto-kernel index c9b2821e009..daaad075201 100755 --- a/scripts/yocto-kernel +++ b/scripts/yocto-kernel @@ -395,5 +395,5 @@ if __name__ == "__main__": except Exception: ret = 1 import traceback - traceback.print_exc(5) + traceback.print_exc() sys.exit(ret) diff --git a/scripts/yocto-layer b/scripts/yocto-layer index 313d464b6e9..356972ece81 100755 --- a/scripts/yocto-layer +++ b/scripts/yocto-layer @@ -146,6 +146,6 @@ if __name__ == "__main__": except Exception: ret = 1 import traceback - traceback.print_exc(5) + traceback.print_exc() sys.exit(ret) -- 2.47.3