By popular demand, make the debug log to syslog.
Remove an extraneous return too.
This commit is contained in:
parent
1bed78b9b4
commit
59de601c12
@ -900,8 +900,10 @@ debug()
|
||||
{
|
||||
case ${rc_debug} in
|
||||
[Yy][Ee][Ss]|[Tt][Rr][Uu][Ee]|[Oo][Nn]|1)
|
||||
if [ -x /usr/bin/logger ]; then
|
||||
logger "$0: INFO: $*"
|
||||
fi
|
||||
echo 1>&2 "$0: DEBUG: $*"
|
||||
return
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user