By popular demand, make the debug log to syslog.
Remove an extraneous return too.
This commit is contained in:
parent
1bed78b9b4
commit
59de601c12
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=106700
@ -900,8 +900,10 @@ debug()
|
|||||||
{
|
{
|
||||||
case ${rc_debug} in
|
case ${rc_debug} in
|
||||||
[Yy][Ee][Ss]|[Tt][Rr][Uu][Ee]|[Oo][Nn]|1)
|
[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: $*"
|
echo 1>&2 "$0: DEBUG: $*"
|
||||||
return
|
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user