From 26639d02f4780914e38a49eccb5e712645129c6e Mon Sep 17 00:00:00 2001 From: Kienan Stewart Date: Fri, 9 Feb 2024 14:30:48 -0500 Subject: [PATCH] python: log exception details when agent thread cannot start Change-Id: If9d58f066d513f63428bbc07190a956571532655 Signed-off-by: Kienan Stewart Signed-off-by: Mathieu Desnoyers --- src/python-lttngust/lttngust/agent.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/python-lttngust/lttngust/agent.py b/src/python-lttngust/lttngust/agent.py index d0c1af7c..0cb31618 100644 --- a/src/python-lttngust/lttngust/agent.py +++ b/src/python-lttngust/lttngust/agent.py @@ -362,9 +362,9 @@ def _init_threads(): t.start() dbg._pdebug('created and started user client thread') reg_expecting += 1 - except: + except Exception as e: # cannot create threads for some reason; stop this initialization - dbg._pwarning('cannot create client threads') + dbg._pwarning('cannot create client threads: {}'.format(e)) return if reg_expecting == 0: -- 2.34.1