Print an error message when a session fails to load
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 8 May 2014 16:13:05 +0000 (12:13 -0400)
committerDavid Goulet <dgoulet@efficios.com>
Mon, 12 May 2014 14:16:10 +0000 (10:16 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Signed-off-by: David Goulet <dgoulet@efficios.com>
src/common/config/config.c

index df6f6a3f496b3ad3093065fa77df79e8e7632e8e..b8a32e6e1f803218e0ba1f0aea10668d865a7dde 100644 (file)
@@ -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);
This page took 0.026924 seconds and 4 git commands to generate.