python: log exception details when agent thread cannot start
[lttng-ust.git] / 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.023703 seconds and 4 git commands to generate.