aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/zed/zed.d
diff options
context:
space:
mode:
authorнаб <[email protected]>2022-03-20 02:22:43 +0100
committerBrian Behlendorf <[email protected]>2022-04-01 17:59:12 -0700
commitdf6e0f009265c92b1c6e30be66400f1e37b70f6f (patch)
treefa2e9d48cd9ceaa9d6f59ee65b752fea22fad5da /cmd/zed/zed.d
parentbe866839f0144eba5bc1168c8b60c2cf809af239 (diff)
zed: functions: zed_log_err: forward to zed_log_msg
Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: John Kennedy <[email protected]> Reviewed-by: Ryan Moeller <[email protected]> Signed-off-by: Ahelenia Ziemiańska <[email protected]> Closes #13259
Diffstat (limited to 'cmd/zed/zed.d')
-rw-r--r--cmd/zed/zed.d/zed-functions.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/cmd/zed/zed.d/zed-functions.sh b/cmd/zed/zed.d/zed-functions.sh
index e6d3ce9ec..70a7113c6 100644
--- a/cmd/zed/zed.d/zed-functions.sh
+++ b/cmd/zed/zed.d/zed-functions.sh
@@ -76,8 +76,7 @@ zed_log_msg()
#
zed_log_err()
{
- logger -p "${ZED_SYSLOG_PRIORITY}" -t "${ZED_SYSLOG_TAG}" -- "error:" \
- "${0##*/}:""${ZEVENT_EID:+" eid=${ZEVENT_EID}:"}" "$@"
+ zed_log_msg "error: ${0##*/}:""${ZEVENT_EID:+" eid=${ZEVENT_EID}:"}" "$@"
}