Article View: news.software.nntp
Article #79712Re: cnfsstat not writing to syslog
From: Russ Allbery
Date: Thu, 20 Nov 2008 16:29
Date: Thu, 20 Nov 2008 16:29
28 lines
2265 bytes
2265 bytes
Bruce Esquibel <bje@e4500.ripco.com> writes:
> Just one more follow up,
>
> I noticed this morning what the problem seems to be is cnfsstat is just
> writing to syslog but without the facility and level.
I suspect that the basic problem that you're running into here is the
long-standing problem that Sys::Syslog tries to be too smart for its own
good. For reasons that I don't really understand, the version of
Sys::Syslog that comes with Perl by default tries to implement syslog in
pure Perl by opening various devices or sockets and writing to them, and
sometimes getting it wrong.
As of Sys::Syslog 0.15, you can disable this and force it to just call the
libc syslog() function by calling:
setlogsock('native');
before using Sys::Syslog. I suspect that INN should start doing that as
long as the version of Sys::Syslog is new enough. Could you give that a
try and see if that fixes your problem?
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID:
<87vdui8ip7.fsf@windlord.stanford.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!feeder.news-service.com!newshub.sdsu.edu!headwall.stanford.edu!news.stanford.edu!not-for-mailReferences:
<gg166a$7v9$1@e250.ripco.com> <gg1a5j$4uh$1@news.trigofacile.com> <gg1n5l$doi$1@e250.ripco.com> <gg2437$i21$1@e250.ripco.com> <gg3s31$4vg$1@e250.ripco.com>Show Full Headers
Complete Article Headers
Message-ID: <87vdui8ip7.fsf@windlord.stanford.edu> Subject: Re: cnfsstat not writing to syslog Date: Thu, 20 Nov 2008 08:29:08 -0800 From: Russ Allbery <rra@stanford.edu> References: <gg166a$7v9$1@e250.ripco.com> <gg1a5j$4uh$1@news.trigofacile.com> <gg1n5l$doi$1@e250.ripco.com> <gg2437$i21$1@e250.ripco.com> <gg3s31$4vg$1@e250.ripco.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!feeder.news-service.com!newshub.sdsu.edu!headwall.stanford.edu!news.stanford.edu!not-for-mail Newsgroups: news.software.nntp Organization: The Eyrie Lines: 28 NNTP-Posting-Host: windlord.stanford.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.stanford.edu 1227198548 32176 171.67.225.134 (20 Nov 2008 X-Complaints-To: news@news.stanford.edu User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) Cancel-Lock: sha1:LM0BW9IUIK9ckEiI6kzp+/jTXn0=