From: Sage Weil Date: Fri, 15 Oct 2021 15:44:59 +0000 (-0500) Subject: mgr/orchestrator: log exception from wrapper X-Git-Tag: v17.1.0~578^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=9502953d4dfcd794fcc9400bb52ebf229abb5517;p=ceph.git mgr/orchestrator: log exception from wrapper This lets us see a proper traceback when we are calling across modules. Signed-off-by: Sage Weil --- diff --git a/src/pybind/mgr/orchestrator/_interface.py b/src/pybind/mgr/orchestrator/_interface.py index 1497f80aaa67..c749921083d7 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)