]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
scripts, lib: Don't limit traceback lengths to arbitrary values
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 31 Mar 2016 11:46:38 +0000 (12:46 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 31 Mar 2016 22:01:29 +0000 (23:01 +0100)
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 <richard.purdie@linuxfoundation.org>
scripts/yocto-bsp
scripts/yocto-kernel
scripts/yocto-layer

index 2d9453fbe8fde059b38177ced0bafb7ff87c745e..82a050ebdca1a3cd0737721981e0b45852b2fd1c 100755 (executable)
@@ -151,6 +151,6 @@ if __name__ == "__main__":
     except Exception:
         ret = 1
         import traceback
-        traceback.print_exc(5)
+        traceback.print_exc()
     sys.exit(ret)
 
index c9b2821e00953af1866f4000f712ec051298c932..daaad075201b9a8400b25a9814593afac23f8df9 100755 (executable)
@@ -395,5 +395,5 @@ if __name__ == "__main__":
     except Exception:
         ret = 1
         import traceback
-        traceback.print_exc(5)
+        traceback.print_exc()
     sys.exit(ret)
index 313d464b6e990e33e9981504d93de6a314c8a354..356972ece817ecd2e0762c2c5868b2fca6704bd3 100755 (executable)
@@ -146,6 +146,6 @@ if __name__ == "__main__":
     except Exception:
         ret = 1
         import traceback
-        traceback.print_exc(5)
+        traceback.print_exc()
     sys.exit(ret)