Fix: sessiond: crash enabling event rules that differ only by loglevel type
[lttng-tools.git] / src / common / event-rule / python-logging.cpp
index eb23b337bfd2c365f90e0fa84b1e8ed81ae020e7..2a5703da2ab22336a8a557f4be323d33dfcd7860 100644 (file)
@@ -413,7 +413,7 @@ lttng_event_rule_python_logging_generate_lttng_event(const struct lttng_event_ru
        status = lttng_event_rule_python_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.024382 seconds and 4 git commands to generate.