From 2a9a332451175dd89c57f10762034adab3c58814 Mon Sep 17 00:00:00 2001 From: Avery Pennarun Date: Fri, 19 Nov 2010 00:54:36 -0800 Subject: [PATCH] jwack.py: print the full traceback if a task fails to run. --- jwack.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jwack.py b/jwack.py index a9c45d7..893d00e 100644 --- a/jwack.py +++ b/jwack.py @@ -174,7 +174,8 @@ def start_job(reason, jobfunc): jobfunc() os._exit(0) except Exception, e: - sys.stderr.write("Exception: %s\n" % e) + import traceback + traceback.print_exc() finally: os._exit(201) # else we're the parent process