diff options
author | Isaku Yamahata <yamahata@valinux.co.jp> | 2012-08-20 11:05:33 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2012-08-20 11:25:06 +0900 |
commit | 3579a3e37c5caf0e524ece6bfd939d1b49b4f331 (patch) | |
tree | 761dc1bcbdcac71a877b2c01f7f81430eefb0d3c | |
parent | c771dc8d6f7fd360cac8a2189e402837dd3ebf62 (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.py | 2 |
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 |