mirror of
https://github.com/firehol/firehol.git
synced 2024-06-28 09:52:19 +00:00
log errors and warnings to syslog, properly
This commit is contained in:
parent
1d11b093d0
commit
fc9d70f93e
@ -132,11 +132,11 @@ $RENICE_CMD 10 $$ >/dev/null 2>/dev/null
|
||||
|
||||
error() {
|
||||
echo >&2 -e "${COLOR_BGRED}${COLOR_WHITE}${COLOR_BOLD} ERROR ${COLOR_RESET}: ${@}"
|
||||
$LOGGER_CMD -p daemon.info -t "update-ipsets.sh[$$]" "${@}"
|
||||
$LOGGER_CMD -p daemon.err -t "update-ipsets.sh[$$]" "${@}"
|
||||
}
|
||||
warning() {
|
||||
echo >&2 -e "${COLOR_BGYELLOW}${COLOR_BLACK}${COLOR_BOLD} WARNING ${COLOR_RESET}: ${@}"
|
||||
$LOGGER_CMD -p daemon.info -t "update-ipsets.sh[$$]" "${@}"
|
||||
$LOGGER_CMD -p daemon.warning -t "update-ipsets.sh[$$]" "${@}"
|
||||
}
|
||||
info() {
|
||||
echo >&2 "${@}"
|
||||
|
Loading…
Reference in New Issue
Block a user