From 3579a3e37c5caf0e524ece6bfd939d1b49b4f331 Mon Sep 17 00:00:00 2001 From: Isaku Yamahata Date: Mon, 20 Aug 2012 11:05:33 +0900 Subject: [PATCH] controller: print backtrace when exception in addition to stacktrace This is useful when debugging. it's difficult to debug without backtrace. Signed-off-by: Isaku Yamahata Signed-off-by: FUJITA Tomonori --- ryu/controller/controller.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ryu/controller/controller.py b/ryu/controller/controller.py index 8f06c1e2..a2f98b18 100644 --- a/ryu/controller/controller.py +++ b/ryu/controller/controller.py @@ -68,7 +68,7 @@ def _deactivate(method): except greenlet.GreenletExit: pass except: - traceback.print_stack() + traceback.print_exc() raise finally: self.is_active = False