From owner-freebsd-stable@freebsd.org Tue May 10 15:07:18 2016 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0A85EB368E0 for ; Tue, 10 May 2016 15:07:18 +0000 (UTC) (envelope-from asomers@gmail.com) Received: from mail-oi0-x236.google.com (mail-oi0-x236.google.com [IPv6:2607:f8b0:4003:c06::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C2F42180E for ; Tue, 10 May 2016 15:07:17 +0000 (UTC) (envelope-from asomers@gmail.com) Received: by mail-oi0-x236.google.com with SMTP id k142so20139241oib.1 for ; Tue, 10 May 2016 08:07:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc; bh=Xc4OuwKjw9irD7dnTFgb/q78nhkdM2c2IcwTTwaVwPY=; b=d4KnFKhIbFNm68Sdy5L+54uI+5wSHf7+aBpTj+fi/xzQznJrNGeI6/zFI9XJYtnyrG 4UuxOVcAIqo1zTVxN7+fy141A9k8Wyc+umisa8biJy+OobzWtMkETuSJH49pjVDaD6nr onK2b4qijLLIRI8D139JF+DwtvYsBkCiHdadbRSMbEvkuvIxzfJMHg/W2CRNVglC3Akb /2JoteGOw+IMXg6TZLwWqMGNCrVJBcRrHISry4UJjFlup9WQCVgfKxF5Dc+6F1gPtBeR UOVal06nNJDD/NYSyOTID6VEGqgL6UYb0L4Z+0Q1WE1rOxf2PbGWFWUhFFXavMb6JisB 4qdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to:cc; bh=Xc4OuwKjw9irD7dnTFgb/q78nhkdM2c2IcwTTwaVwPY=; b=GJ6Im2aPrh3qX9COpmyYPqp47xIOFYX1azP5+gfSpNHYXTQ58t4NeIEcSnqLmW7J5O B4GCfOuxtRJ5q7/NLouXwgJmSm9hRbI6Ci50XdZQTvgcKKiiz2Psy5Rnv28exTaNx2mH pJdGjVFbfb6XakPtVnChdZSXtThqVE1YJ6n2jcoczrM18yRmucdOih69pfdsBTYfEBgz CI9elE9Vj/S1T4oFwR7jnrY2FKqtTScV+QyBe+SjTQRH4B8uwBDEKh/r5rC3e5bVukUU /4caEaD6Tv3IQvQ7i3jFUkNOgMcb0fKkDaSW6GytockZAVPfBDXeC3TvNLaAiCQ/Kjs/ NmZw== X-Gm-Message-State: AOPr4FWecLs53KLJPGuGc32J1k5v38U/CnABdYPMj3GUT/CvzFx5EppqATCQbCjpNaFMSGbG8QDUu0L+NDDWFQ== MIME-Version: 1.0 X-Received: by 10.157.38.40 with SMTP id a37mr3136199otb.152.1462892836650; Tue, 10 May 2016 08:07:16 -0700 (PDT) Sender: asomers@gmail.com Received: by 10.202.64.138 with HTTP; Tue, 10 May 2016 08:07:16 -0700 (PDT) In-Reply-To: <0b381a7eb2a3f9c70060af24946cb756@thebighonker.lerctr.org> References: <8ad69116e60d5a37e04e8b1b975e1637@thebighonker.lerctr.org> <0b381a7eb2a3f9c70060af24946cb756@thebighonker.lerctr.org> Date: Tue, 10 May 2016 09:07:16 -0600 X-Google-Sender-Auth: RJgVq2FQIuQ2gXGGnbOEDfpn0WQ Message-ID: Subject: Re: Noisy (empty) CD From: Alan Somers To: Larry Rosenman Cc: Freebsd stable Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 May 2016 15:07:18 -0000 On Tue, May 10, 2016 at 8:59 AM, Larry Rosenman wrote: > > On 2016-05-10 09:56, Alan Somers wrote: > > On Tue, May 10, 2016 at 8:28 AM, Larry Rosenman wrote: > >> Is there work going on to silence this when the cd drive is empty? >> >> May 10 09:26:46 thebighonker devd: Processing event '!system=CAM >> subsystem=periph type=error device=cd0 serial="" cam_status="0xcc" >> scsi_status=2 scsi_sense="70 02 3a 01" CDB="00 00 00 00 00 00 " ' >> May 10 09:27:16 thebighonker last message repeated 10 times >> >> thebighonker.lerctr.org /home/ler $ uname -aKU >> FreeBSD thebighonker.lerctr.org 10.3-STABLE FreeBSD 10.3-STABLE #40 >> r299365: Tue May 10 09:14:53 CDT 2016 root@thebighonker.lerctr.org:/usr/obj/usr/src/sys/GENERIC >> amd64 1003501 1003501 >> thebighonker.lerctr.org /home/ler $ > > > Yes. In the long term, scottl is trying to quell messages like that. In > the short term, you can easily silence it with /etc/syslog.conf rules. In > fact, it shouldn't even there with the default syslog.conf. Have you > modified yours? Can you please share the modifications? > > -Alan > > > # $FreeBSD: stable/10/etc/syslog.conf 260519 2014-01-10 17:56:23Z asomers $ > # > # Spaces ARE valid field separators in this file. However, > # other *nix-like systems still insist on using tabs as field > # separators. If you are sharing this file between systems, you > # may want to use only tabs as field separators here. > # Consult the syslog.conf(5) manpage. > *.err;kern.warning;auth.notice;mail.crit /dev/console > *.info;authpriv.none;kern.debug;lpr.info;mail.crit;news.err;cron.none;local0.none;local1.none > /var/log/messages > security.* /var/log/security > auth.info;authpriv.info /var/log/auth.log > #auth.info;authpriv.info |exec /usr/local/sbin/sshit > mail.info /var/log/maillog > mail.debug /var/log/debug.maillog > local1.* /var/log/cisco.log > lpr.info /var/log/lpd-errs > ftp.info /var/log/xferlog > cron.* /var/log/cron > # Uncomment this if you wish to see messages produced by devd > #!devd > #*.>=notice /var/log/devd.log > > *.=debug /var/log/debug.log > *.emerg * > # uncomment this to log all writes to /dev/console to /var/log/console.log > console.info /var/log/console.log > # uncomment this to enable logging of all log messages to /var/log/all.log > # touch /var/log/all.log and chmod it to mode 600 before it will work > *.* /var/log/all.log > # uncomment this to enable logging to a remote loghost named loghost > #*.* @loghost > # uncomment these if you're running inn > #news.crit /var/log/news/news.crit > #news.err /var/log/news/news.err > #news.notice /var/log/news/news.notice > local0.* /var/log/pg-prod.log > #!startslip > #*.* /var/log/slip.log > #!ppp > #*.* /var/log/ppp.log > > The messages you're seeing are printed by devd at loglevel info, and I see that you're directing *.info to /var/log/messages. If you change that to the default "*.notice" then you won't see the offending messages, or if you prefix the line with "!-devd" like this: !-devd *.info;authpriv.none;kern.debug;lpr.info;mail.crit;news.err;cron.none;local0.none;local1.none /var/log/messages In the latter case, I recommend that you enable /var/log/devd.log at level notice. -Alan