diff options
author | Isis Lovecruft <isis@torproject.org> | 2013-02-17 14:36:04 +0000 |
---|---|---|
committer | Isis Lovecruft <isis@torproject.org> | 2013-02-17 14:36:04 +0000 |
commit | 49bf21c80939e8a5d83cd2d73323ab821de391dc (patch) | |
tree | e4db26e1bc34830eac6c1474c3cfeea13164ae74 | |
parent | f3bf0f6649fd6774e2e2a6abdd7f130f1f677401 (diff) |
Set the traceback recursion when running in debug mode higher so that we can
follow exceptions better.
-rwxr-xr-x | start_mx.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/start_mx.py b/start_mx.py index 7b8fc8a..fe0b23b 100755 --- a/start_mx.py +++ b/start_mx.py @@ -55,7 +55,7 @@ except ImportError, ie: sys.exit(1) try: - from twisted.python import usage, runtime + from twisted.python import usage, runtime, failure from twisted.python.util import spewer except ImportError, ie: print("This software requires Twisted>=12.0.2, please see the README for") @@ -139,9 +139,10 @@ if __name__ == "__main__": % (application_name, runtime.shortPythonVersion(), runtime.platform.getType(), thread_support)) - if options['verbose']: config.basic.debug = True + failure.traceupLength = 7 + failure.startDebugMode() if options['test']: from leap.mx import tests ## xxx this needs an __init__.py |