python: log exception details when agent thread cannot start
authorKienan Stewart <kstewart@efficios.com>
Fri, 9 Feb 2024 19:30:48 +0000 (14:30 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 19 Feb 2024 14:23:46 +0000 (09:23 -0500)
Change-Id: If9d58f066d513f63428bbc07190a956571532655
Signed-off-by: Kienan Stewart <kstewart@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
src/python-lttngust/lttngust/agent.py

index d0c1af7ca8eab3883129e9e889012d48735d7cd2..0cb31618a6534b65fb0777e2357ec4617a5c456b 100644 (file)
@@ -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:
This page took 0.025765 seconds and 4 git commands to generate.