From 6d6a0bec6c68a38227bf011b88f3a49174409037 Mon Sep 17 00:00:00 2001 From: Razvan Crainea Date: Thu, 2 May 2024 09:41:53 +0300 Subject: [PATCH] parser: log_event_level_filter should be signed int This allow setting the filter to more severe levels, i.e. ERROR and upper --- cfg.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cfg.y b/cfg.y index ccc48b913d4..269e2e1b17c 100644 --- a/cfg.y +++ b/cfg.y @@ -945,7 +945,7 @@ assign_stm: LOGLEVEL EQUAL snumber { IFOR(); set_log_consumer_level_filter(&s_tmp, $3); } | SYSLOG_LEVEL_FILTER EQUAL error { yyerror("number expected"); } - | LOG_EVENT_LEVEL_FILTER EQUAL NUMBER { IFOR(); + | LOG_EVENT_LEVEL_FILTER EQUAL snumber { IFOR(); log_event_level_filter = $3; } | LOG_EVENT_LEVEL_FILTER EQUAL error { yyerror("number expected"); } | STDERROR_FORMAT EQUAL STRING { IFOR();