NetBSD Problem Report #53333

From root@whooppee.com  Wed May 30 21:59:20 2018
Return-Path: <root@whooppee.com>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 137B37A186
	for <gnats-bugs@gnats.NetBSD.org>; Wed, 30 May 2018 21:59:20 +0000 (UTC)
Message-Id: <20180530215917.2E93A30F2C2@speedy.whooppee.com>
Date: Thu, 31 May 2018 05:59:17 +0800 (+08)
From: paul@whooppee.com
Reply-To: paul@whooppee.com
To: gnats-bugs@NetBSD.org
Subject: logger -c doesn't log to console device
X-Send-Pr-Version: 3.95

>Number:         53333
>Category:       kern
>Synopsis:       logger -c doesn't log to console device
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          closed
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Wed May 30 22:00:00 +0000 2018
>Closed-Date:    Mon Jul 13 11:18:45 +0000 2020
>Last-Modified:  Mon Jul 13 11:18:45 +0000 2020
>Originator:     Paul Goyette
>Release:        NetBSD 8.99.18
>Organization:
+------------------+--------------------------+----------------------------+
| Paul Goyette     | PGP Key fingerprint:     | E-mail addresses:          |
| (Retired)        | FA29 0E3B 35AF E8AE 6651 | paul at whooppee dot com   |
| Kernel Developer | 0786 F758 55DE 53BA 7731 | pgoyette at netbsd dot org |
+------------------+--------------------------+----------------------------+
>Environment:


System: NetBSD speedy.whooppee.com 8.99.18 NetBSD 8.99.18 (SPEEDY 2018-05-27 05:42:36 UTC) #0: Sun May 27 06:58:32 UTC 2018 paul@speedy.whooppee.com:/build/netbsd-local/obj/amd64/sys/arch/amd64/compile/SPEEDY amd64
Architecture: x86_64
Machine: amd64
>Description:
	Pretty self-explanatory.  Execute

		logger -c test

	and observe that the test message appears in /var/log/messages
	but does not appear on the console device (neither in "green"
	nor "white" font).

>How-To-Repeat:
	See above

>Fix:
	Unknown


>Release-Note:

>Audit-Trail:
From: Valery Ushakov <uwe@stderr.spb.ru>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: kern/53333: logger -c doesn't log to console device
Date: Thu, 31 May 2018 02:00:29 +0300

 On Wed, May 30, 2018 at 22:00:00 +0000, paul@whooppee.com wrote:

 > 	logger -c test
 > 
 > and observe that the test message appears in /var/log/messages
 > but does not appear on the console device (neither in "green"
 > nor "white" font).

 logger -c sets LOG_CONS.  But LOG_CONS doesn't mean "log to console",
 as logger(1) mistakenly claims, it's "fallback to console"

   LOG_CONS      If syslog() cannot pass the message to syslogd(8) it will
                 attempt to write the message to the console
                 ("/dev/console").

 -uwe

From: "Jukka Ruohonen" <jruoho@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/53333 CVS commit: src/usr.bin/logger
Date: Thu, 25 Jun 2020 15:21:57 +0000

 Module Name:	src
 Committed By:	jruoho
 Date:		Thu Jun 25 15:21:57 UTC 2020

 Modified Files:
 	src/usr.bin/logger: logger.1

 Log Message:
 Fix PR kern/53333.


 To generate a diff of this commit:
 cvs rdiff -u -r1.15 -r1.16 src/usr.bin/logger/logger.1

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->closed
State-Changed-By: jruoho@NetBSD.org
State-Changed-When: Mon, 13 Jul 2020 11:18:45 +0000
State-Changed-Why:
Should be fixed in -current (via documentation).


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.