Skip to content

Commit

Permalink
parser: log_event_level_filter should be signed int
Browse files Browse the repository at this point in the history
This allow setting the filter to more severe levels, i.e. ERROR and
upper
  • Loading branch information
razvancrainea committed May 2, 2024
1 parent 0eafd4f commit 6d6a0be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cfg.y
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 6d6a0be

Please sign in to comment.