Log path used in connection attempts
authorKienan Stewart <kstewart@efficios.com>
Wed, 11 Oct 2023 14:28:40 +0000 (10:28 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 19 Oct 2023 17:23:14 +0000 (13:23 -0400)
Motivated by feedback on the lttng-dev mailing list that a user couldn't
find the socket path used when debugging connection issues of their
UST application.

Refs https://bugs.lttng.org/issues/1393

Change-Id: I42c8bb9ae372683a16f176caf87ac394f816955e
Signed-off-by: Kienan Stewart <kstewart@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
src/common/ustcomm.c

index f391399ff3f1b46aedf2ff958c0d3ea101563803..47f228b1de907e7b6ac8e829e4074205fdddc086 100644 (file)
@@ -82,6 +82,7 @@ int ustcomm_connect_unix_sock(const char *pathname, long timeout)
        strncpy(sun.sun_path, pathname, sizeof(sun.sun_path));
        sun.sun_path[sizeof(sun.sun_path) - 1] = '\0';
 
+       DBG("Connecting to '%s'", sun.sun_path);
        ret = connect(fd, (struct sockaddr *) &sun, sizeof(sun));
        if (ret < 0) {
                /*
This page took 0.025406 seconds and 4 git commands to generate.