🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #32596

Re: Diagnostic messages from within a perl filter?

#32596
From: Jeremy
Date: Wed, 28 Oct 1998 00:00
24 lines
1618 bytes
Aidan Cully <aidan@panix.com> wrote:

> I'm just about finished rewriting the News Gizmo as an nnprd perl filter,
> but I don't know how to report syntax errors in the config-file in the
> context of a perl filter.  What's the best way to do this inside of
> nnrpd?  I've heard that perl has a syslog function, but it also seems to
> be a fair bit unreliable (didn't controlchan have trouble with it?), so
> what should I do?

The syslog callback in bleeding-edge INN is in innd, not nnrpd.

When I tried using Sys::Syslog from the embedded perl, it crashed
horribly.  But that also was in innd, not nnrpd.  The problems it
has are with being portable, apparently.

Fluffy's syslog module attempts to solve those; that might be the
best one to try for what you want.

-- 
Jeremy | jeremy@exit109.com
"The sky would not fall if an American President spoke the truth."
                                   --Ronald Reagan

Technical Details
Message-ID: <716bvb$g04$1@east44.supernews.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.mbox.zip!not-for-mail
References: <7137ad$3nj@news1.panix.com>

Show Full Headers
Complete Article Headers
Message-ID: <716bvb$g04$1@east44.supernews.com>
Subject: Re: Diagnostic messages from within a perl filter?
Date: Wed, 28 Oct 1998 00:00:00 +0000
From: Jeremy <jeremy@exit109.com>
References: <7137ad$3nj@news1.panix.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.mbox.zip!not-for-mail
X-Deja-AN: 405833133
Distribution: inet
X-Complaints-To: newsabuse@supernews.com
X-Trace: 909554475 HGJFWBHQJ4003D0E1 east44.supernews.com
Organization: There Is No Organization
Newsgroups: news.software.nntp