Fix: typo in lttng list command for log4j
[lttng-tools.git] / src / bin / lttng / commands / list.c
index e3ff4f1bac7d422f911e0f53e125060bb4b30137..9cc6e474773428b4d87130129604e86fa36d49e3 100644 (file)
@@ -1251,7 +1251,6 @@ static int list_sessions(const char *session_name)
                /* Pretty print */
                if (count == 0) {
                        MSG("Currently no available tracing session");
-                       ret = CMD_ERROR;
                        goto end;
                }
 
@@ -1464,7 +1463,7 @@ int cmd_list(int argc, const char **argv)
        } else if (opt_jul) {
                DBG2("Listing JUL domain");
                domain.type = LTTNG_DOMAIN_JUL;
-       } else if (opt_jul) {
+       } else if (opt_log4j) {
                domain.type = LTTNG_DOMAIN_LOG4J;
        }
 
This page took 0.027025 seconds and 5 git commands to generate.