Fix: don't print channel name on enable JUL event
authorDavid Goulet <dgoulet@efficios.com>
Thu, 10 Jul 2014 19:40:36 +0000 (15:40 -0400)
committerDavid Goulet <dgoulet@efficios.com>
Thu, 10 Jul 2014 19:40:36 +0000 (15:40 -0400)
Fixes #802

Signed-off-by: David Goulet <dgoulet@efficios.com>
src/bin/lttng/commands/enable_events.c

index bd2d997858395ea164b6bbbf410adc258d5eea28..1547d7086f68be5fc60c311f968cb879bacd98b9 100644 (file)
@@ -890,10 +890,17 @@ static int enable_events(char *session_name)
                                }
                                warn = 1;
                        } else {
-                               MSG("%s event %s%s created in channel %s",
-                                               get_domain_str(dom.type), event_name,
-                                               exclusion_string,
-                                               print_channel_name(channel_name));
+                               /* So we don't print the default channel name for JUL. */
+                               if (dom.type == LTTNG_DOMAIN_JUL) {
+                                       MSG("%s event %s%s enabled.",
+                                                       get_domain_str(dom.type), event_name,
+                                                       exclusion_string);
+                               } else {
+                                       MSG("%s event %s%s created in channel %s",
+                                                       get_domain_str(dom.type), event_name,
+                                                       exclusion_string,
+                                                       print_channel_name(channel_name));
+                               }
                        }
                        free(exclusion_string);
                }
This page took 0.029539 seconds and 4 git commands to generate.