logmngr: 1.1.4

This commit is contained in:
Husaam Mehdi 2025-09-05 13:54:00 +00:00 committed by IOPSYS Dev
parent 8f82b31658
commit 784a281fa6
No known key found for this signature in database
2 changed files with 7 additions and 3 deletions

View file

@ -5,7 +5,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=logmngr
PKG_VERSION:=1.1.3
PKG_VERSION:=1.1.4
LOCAL_DEV:=0
ifneq ($(LOCAL_DEV),1)

View file

@ -187,6 +187,7 @@ create_filter_section() {
create_kmsg_input_section() {
local tag="$1"
local max_sev=7
[ -z "$tag" ] && return
kmsg_tag_already_processed "$tag" && return
@ -204,7 +205,10 @@ create_kmsg_input_section() {
# and only Log action is supported
# so set Prio_Level = max severity
if [ "$sev_action" = "0" ] && [ "$sev_compare" = "1" ]; then
local max_sev=$(echo $severities | tr ' ' '\n' | sort -n | tail -1)
if [ -n "$severities" ]; then
max_sev=$(echo $severities | tr ' ' '\n' | sort -n | tail -1)
fi
append_conf " prio_level $max_sev"
fi
fi
@ -443,7 +447,7 @@ handle_action() {
match_pattern=""
facilities=""
all_facilities=0
kern_facility=0
kern_facility=1
severities=""
sev_compare=1
sev_action=0