From: Kienan Stewart Date: Fri, 9 Feb 2024 19:30:48 +0000 (-0500) Subject: python: log exception details when agent thread cannot start X-Git-Url: http://git.liburcu.org/?p=lttng-ust.git;a=commitdiff_plain;h=26639d02f4780914e38a49eccb5e712645129c6e python: log exception details when agent thread cannot start Change-Id: If9d58f066d513f63428bbc07190a956571532655 Signed-off-by: Kienan Stewart Signed-off-by: Mathieu Desnoyers --- 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: