X-Git-Url: https://git.lttng.org/?p=lttng-ust.git;a=blobdiff_plain;f=src%2Fpython-lttngust%2Flttngust%2Fagent.py;fp=src%2Fpython-lttngust%2Flttngust%2Fagent.py;h=0cb31618a6534b65fb0777e2357ec4617a5c456b;hp=d0c1af7ca8eab3883129e9e889012d48735d7cd2;hb=26639d02f4780914e38a49eccb5e712645129c6e;hpb=2dbe84f739b26671faf2b2a15a91e5edb132bf1a 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: