commit | 59a785fc6d95a5d7f23334d8610344cc8f01eadd | [log] [tgz] |
---|---|---|
author | Matteo Scandolo <teo@opennetworking.org> | Mon Feb 05 11:33:03 2018 -0800 |
committer | Matteo Scandolo <teo@opennetworking.org> | Thu Feb 08 21:13:14 2018 +0000 |
tree | b1d65cad6c7099b2004f8373cd04d03b3be009ac | |
parent | b1286b31f691edcd96a880dff9fb082e7b1704b3 [diff] |
[CORD-2696] Printing stacktrace for gRPC errors Change-Id: I6a31a38ab5aa775b67d867a083e2491840e02dbb
diff --git a/xos/coreapi/apihelper.py b/xos/coreapi/apihelper.py index 3894ce8..7c8c6a0 100644 --- a/xos/coreapi/apihelper.py +++ b/xos/coreapi/apihelper.py
@@ -69,6 +69,11 @@ return function(*args, **kwargs) except Exception as e: + import traceback + tb = traceback.format_exc() + print tb + # TODO can we propagate it over the APIs? + if "context" in kwargs: context = kwargs["context"] else: