🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #55507

Re: INN: flushing trace statments

#55507
From: Andrew Gierth
Date: Thu, 06 Dec 2001 02:13
35 lines
2258 bytes
>>>>> "Anne" == Anne Wilson <anne@unidata.ucar.edu> writes:

 Anne> Hi,
 Anne> Using an INN server, I'm writing my own routine to process news
 Anne> articles as they arrive.  That is, I've got the following entry
 Anne> in newsfeeds:

 Anne> test!:!*,unidata.hds\
 Anne> 	:Tc,Wn:\
 Anne> 	/opt/news/util/dataProdHandlers/articleDecoder "KLBB 20011205000609"

 Anne> I would like to see my trace statements in articleDecoder
 Anne> appear as my routine is executed, but it seems that syslog
 Anne> messages and print statements (I've only tried printing to
 Anne> stderr) are being buffered.

What is "articleDecoder" written in?

syslog messages should never be buffered. Output to stderr should appear
in the errlog. In some cases it may be necessary to explicitly mark
stderr as unbuffered or line-buffered.

 Anne> And sometimes it seems that printf to stderr appears in "news".

I don't think that should be happening.

 Anne> How can I get messages to appear in some consistent place as my
 Anne> routine is being executed?

syslog is usually the most reliable. Alternatively you may want to
open your own log file.

-- 
Andrew.
Technical Details
Message-ID: <87d71tnlir.fsf@erlenstar.demon.co.uk>
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!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!lios!news.gweep.ca!news-feed.riddles.org.uk!erlenstar.demon.co.uk!newsmonster
References: <3C0EC505.81AF25D4@unidata.ucar.edu>

Show Full Headers
Complete Article Headers
Message-ID: <87d71tnlir.fsf@erlenstar.demon.co.uk>
Subject: Re: INN: flushing trace statments
Date: Thu, 06 Dec 2001 02:13:32 +0000
From: Andrew Gierth <andrew@erlenstar.demon.co.uk>
References: <3C0EC505.81AF25D4@unidata.ucar.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.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!lios!news.gweep.ca!news-feed.riddles.org.uk!erlenstar.demon.co.uk!newsmonster
Newsgroups: news.software.nntp
Organization: disorganised
Lines: 34
NNTP-Posting-Host: erlenstar.demon.co.uk (5f65:032c)
Cc: Anne Wilson <anne@unidata.ucar.edu>
X-Mayan-Date: Long count = 12.19.8.14.5; tzolkin = 12 Chicchan; haab = 3 Mac
X-Pgp-0x0E9FFBE9: 87 25 7F 14 41 24 B3 51 E0 19 8B DE 49 74 0C 29
X-Attribution: AG
X-P-Persistent-Headers: are a bad idea.
X-Newsreader: Gnus v5.5/Emacs 20.2
X-Complaints-To: andrew@erlenstar.demon.co.uk
X-Post-Filter: postfilter v0.6 alpha