X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/5986668ca9d41f7b6aee1c9890345853e157aa6b..ddc9278d09957a5c6cb27ad0ca696f096476e38a:/package/firewall/files/lib/core.sh diff --git a/package/firewall/files/lib/core.sh b/package/firewall/files/lib/core.sh index c350e8f0f..c38359781 100644 --- a/package/firewall/files/lib/core.sh +++ b/package/firewall/files/lib/core.sh @@ -107,10 +107,8 @@ fw_die() { fw_log() { local level="$1" - [ -n "$2" ] || { - shift - level=notice - } + [ -n "$2" ] && shift || level=notice + [ "$level" != error ] || echo "Error: $@" >&2 logger -t firewall -p user.$level "$@" }