/etc/rc.subr debug() logs messages with INFO

David Thompson dat1965 at yahoo.com
Fri Sep 15 16:35:01 PDT 2006


Hi,

Looking at /etc/rc.subr rev 1.68 on CVSweb, you can see
the meat of info() doing these commands,

                if [ -x /usr/bin/logger ]; then
                        logger "$0: INFO: $*"
                fi
                echo "$0: INFO: $*"

Here is similar debug() meat,

                if [ -x /usr/bin/logger ]; then
                        logger "$0: INFO: $*"
                fi
                echo 1>&2 "$0: DEBUG: $*"

Huh?  Why is the debug() function calling logger and
identifying its messages with "INFO".

Looks to be typo.  Can anyone confirm?

--
David

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


More information about the freebsd-rc mailing list