Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 Oct 2006 12:24:45 +0400
From:      Yar Tikhiy <yar@comp.chem.msu.su>
To:        David Thompson <dat1965@yahoo.com>
Cc:        freebsd-rc@freebsd.org
Subject:   Re: /etc/rc.subr debug() logs messages with INFO
Message-ID:  <20061002082445.GA65248@comp.chem.msu.su>
In-Reply-To: <20060915233459.57681.qmail@web55113.mail.re4.yahoo.com>
References:  <20060915233459.57681.qmail@web55113.mail.re4.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061002082445.GA65248>