[lttng-dev] [PATCH lttng-tools] Print an error message when a session fails to load

Jérémie Galarneau jeremie.galarneau at efficios.com
Thu May 8 12:13:05 EDT 2014


Signed-off-by: Jérémie Galarneau <jeremie.galarneau at efficios.com>
---
 src/common/config/config.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/common/config/config.c b/src/common/config/config.c
index df6f6a3..b8a32e6 100644
--- a/src/common/config/config.c
+++ b/src/common/config/config.c
@@ -2305,6 +2305,11 @@ domain_init_error:
 		}
 	}
 end:
+	if (ret < 0) {
+		ERR("Failed to load session %s: %s", name, lttng_strerror(ret));
+		lttng_destroy_session(name);
+	}
+
 	free(kernel_domain);
 	free(ust_domain);
 	free(jul_domain);
-- 
1.9.2




More information about the lttng-dev mailing list