From 9502953d4dfcd794fcc9400bb52ebf229abb5517 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Fri, 15 Oct 2021 10:44:59 -0500 Subject: [PATCH] mgr/orchestrator: log exception from wrapper This lets us see a proper traceback when we are calling across modules. Signed-off-by: Sage Weil --- src/pybind/mgr/orchestrator/_interface.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pybind/mgr/orchestrator/_interface.py b/src/pybind/mgr/orchestrator/_interface.py index 1497f80aaa67e..c749921083d77 100644 --- a/src/pybind/mgr/orchestrator/_interface.py +++ b/src/pybind/mgr/orchestrator/_interface.py @@ -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) -- 2.39.5