summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorIsaku Yamahata <yamahata@valinux.co.jp>2012-08-20 11:05:33 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2012-08-20 11:25:06 +0900
commit3579a3e37c5caf0e524ece6bfd939d1b49b4f331 (patch)
tree761dc1bcbdcac71a877b2c01f7f81430eefb0d3c
parentc771dc8d6f7fd360cac8a2189e402837dd3ebf62 (diff)
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 <yamahata@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r--ryu/controller/controller.py2
1 files changed, 1 insertions, 1 deletions
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