|
|
@ -282,11 +282,11 @@ write_log() { |
|
|
|
[ $__LEVEL -eq 7 ] && return # no syslog for debug messages |
|
|
|
__CMD=$(echo -e "$__CMD" | tr -d '\n' | tr '\t' ' ') # remove \n \t chars |
|
|
|
[ $__EXIT -eq 1 ] && { |
|
|
|
eval "$__CMD" # force syslog before exit |
|
|
|
eval '$__CMD' # force syslog before exit |
|
|
|
exit 1 |
|
|
|
} |
|
|
|
[ $use_syslog -eq 0 ] && return |
|
|
|
[ $((use_syslog + __LEVEL)) -le 7 ] && eval "$__CMD" |
|
|
|
[ $((use_syslog + __LEVEL)) -le 7 ] && eval '$__CMD' |
|
|
|
|
|
|
|
return |
|
|
|
} |
|
|
|