Fix: sessiond: crash enabling event rules that differ only by loglevel type
[lttng-tools.git] / src / common / event-rule / log4j-logging.cpp
index 5655cd3bcc8fec6d0722bc166c50fe8c8f246f9d..a3184d6d06a3b1ada2f03a646afcf36a41fed700 100644 (file)
@@ -413,7 +413,7 @@ lttng_event_rule_log4j_logging_generate_lttng_event(const struct lttng_event_rul
        status = lttng_event_rule_log4j_logging_get_log_level_rule(rule, &log_level_rule);
        if (status == LTTNG_EVENT_RULE_STATUS_UNSET) {
                loglevel_type = LTTNG_EVENT_LOGLEVEL_ALL;
-               loglevel_value = 0;
+               loglevel_value = -1;
        } else if (status == LTTNG_EVENT_RULE_STATUS_OK) {
                enum lttng_log_level_rule_status llr_status;
 
This page took 0.024036 seconds and 4 git commands to generate.