diff options
author | gordon <gordon@FreeBSD.org> | 2002-11-09 17:34:21 +0000 |
---|---|---|
committer | gordon <gordon@FreeBSD.org> | 2002-11-09 17:34:21 +0000 |
commit | bbfee3a58a02e6585d576f452904cff9c7252c8d (patch) | |
tree | a59d2be412d550a51a82d07c6e53c01f7e523032 /etc | |
parent | 444a5dbae820ca21732f4519b447385bd980d1a8 (diff) | |
download | FreeBSD-src-bbfee3a58a02e6585d576f452904cff9c7252c8d.zip FreeBSD-src-bbfee3a58a02e6585d576f452904cff9c7252c8d.tar.gz |
By popular demand, make the debug log to syslog.
Remove an extraneous return too.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/rc.subr | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/rc.subr b/etc/rc.subr index ed69e4e..d041cf9 100644 --- a/etc/rc.subr +++ b/etc/rc.subr @@ -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 } |