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

Yar Tikhiy yar at comp.chem.msu.su
Mon Oct 2 01:24:56 PDT 2006


On Fri, Sep 15, 2006 at 04:34:59PM -0700, David Thompson wrote:
> 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?

It's an obvious fallout from a cut'n'paste from info().
Thanks for reporting it.  Just fixed it in HEAD.

-- 
Yar


More information about the freebsd-rc mailing list