mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
logmngr: 1.1.4
This commit is contained in:
parent
8001d9d14b
commit
9177090e7c
2 changed files with 7 additions and 3 deletions
|
|
@ -5,7 +5,7 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=logmngr
|
PKG_NAME:=logmngr
|
||||||
PKG_VERSION:=1.1.3
|
PKG_VERSION:=1.1.4
|
||||||
|
|
||||||
LOCAL_DEV:=0
|
LOCAL_DEV:=0
|
||||||
ifneq ($(LOCAL_DEV),1)
|
ifneq ($(LOCAL_DEV),1)
|
||||||
|
|
|
||||||
|
|
@ -187,6 +187,7 @@ create_filter_section() {
|
||||||
|
|
||||||
create_kmsg_input_section() {
|
create_kmsg_input_section() {
|
||||||
local tag="$1"
|
local tag="$1"
|
||||||
|
local max_sev=7
|
||||||
|
|
||||||
[ -z "$tag" ] && return
|
[ -z "$tag" ] && return
|
||||||
kmsg_tag_already_processed "$tag" && return
|
kmsg_tag_already_processed "$tag" && return
|
||||||
|
|
@ -204,7 +205,10 @@ create_kmsg_input_section() {
|
||||||
# and only Log action is supported
|
# and only Log action is supported
|
||||||
# so set Prio_Level = max severity
|
# so set Prio_Level = max severity
|
||||||
if [ "$sev_action" = "0" ] && [ "$sev_compare" = "1" ]; then
|
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"
|
append_conf " prio_level $max_sev"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
@ -443,7 +447,7 @@ handle_action() {
|
||||||
match_pattern=""
|
match_pattern=""
|
||||||
facilities=""
|
facilities=""
|
||||||
all_facilities=0
|
all_facilities=0
|
||||||
kern_facility=0
|
kern_facility=1
|
||||||
severities=""
|
severities=""
|
||||||
sev_compare=1
|
sev_compare=1
|
||||||
sev_action=0
|
sev_action=0
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue