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>
This commit is contained in:
Isaku Yamahata 2012-08-20 11:05:33 +09:00 committed by FUJITA Tomonori
parent c771dc8d6f
commit 3579a3e37c

View File

@ -68,7 +68,7 @@ def _deactivate(method):
except greenlet.GreenletExit:
pass
except:
traceback.print_stack()
traceback.print_exc()
raise
finally:
self.is_active = False