debug() shouldn't misidentify itself to logger(1).

Noticed by:	David Thompson <dat1965 yahoo com>
This commit is contained in:
Yaroslav Tykhiy 2006-10-02 08:20:37 +00:00
parent 7251f55777
commit 4af42c2cb1

View File

@ -1008,7 +1008,7 @@ debug()
case ${rc_debug} in
[Yy][Ee][Ss]|[Tt][Rr][Uu][Ee]|[Oo][Nn]|1)
if [ -x /usr/bin/logger ]; then
logger "$0: INFO: $*"
logger "$0: DEBUG: $*"
fi
echo 1>&2 "$0: DEBUG: $*"
;;