From owner-freebsd-rc@FreeBSD.ORG Mon Oct 2 08:24:56 2006 Return-Path: X-Original-To: freebsd-rc@freebsd.org Delivered-To: freebsd-rc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 72DE116A492 for ; Mon, 2 Oct 2006 08:24:56 +0000 (UTC) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (comp.chem.msu.su [158.250.32.97]) by mx1.FreeBSD.org (Postfix) with ESMTP id AADC143D5F for ; Mon, 2 Oct 2006 08:24:51 +0000 (GMT) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (localhost [127.0.0.1]) by comp.chem.msu.su (8.13.4/8.13.3) with ESMTP id k928OkUk065642; Mon, 2 Oct 2006 12:24:46 +0400 (MSD) (envelope-from yar@comp.chem.msu.su) Received: (from yar@localhost) by comp.chem.msu.su (8.13.4/8.13.3/Submit) id k928Okaq065639; Mon, 2 Oct 2006 12:24:46 +0400 (MSD) (envelope-from yar) Date: Mon, 2 Oct 2006 12:24:45 +0400 From: Yar Tikhiy To: David Thompson Message-ID: <20061002082445.GA65248@comp.chem.msu.su> References: <20060915233459.57681.qmail@web55113.mail.re4.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060915233459.57681.qmail@web55113.mail.re4.yahoo.com> User-Agent: Mutt/1.5.9i Cc: freebsd-rc@freebsd.org Subject: Re: /etc/rc.subr debug() logs messages with INFO X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Oct 2006 08:24:56 -0000 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