By popular demand, make the debug log to syslog.

Remove an extraneous return too.
This commit is contained in:
Gordon Tetlow 2002-11-09 17:34:21 +00:00
parent 1bed78b9b4
commit 59de601c12

View File

@ -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
}