]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/orchestrator: log exception from wrapper 43692/head
authorSage Weil <sage@newdream.net>
Fri, 15 Oct 2021 15:44:59 +0000 (10:44 -0500)
committerSage Weil <sage@newdream.net>
Wed, 27 Oct 2021 21:31:06 +0000 (16:31 -0500)
This lets us see a proper traceback when we are calling across
modules.

Signed-off-by: Sage Weil <sage@newdream.net>
src/pybind/mgr/orchestrator/_interface.py

index 1497f80aaa67e341d6a7b0a438b096fd2265d49a..c749921083d7719e1d672a0f29ce54dcec369e77 100644 (file)
@@ -124,6 +124,7 @@ def handle_orch_error(f: Callable[..., T]) -> Callable[..., 'OrchResult[T]']:
         try:
             return OrchResult(f(*args, **kwargs))
         except Exception as e:
+            logger.exception(e)
             return OrchResult(None, exception=e)
 
     return cast(Callable[..., OrchResult[T]], wrapper)