Article View: news.software.nntp
Article #55517Re: INN: flushing trace statments
From: Anne Wilson
Date: Thu, 06 Dec 2001 18:50
Date: Thu, 06 Dec 2001 18:50
66 lines
3198 bytes
3198 bytes
Andrew Gierth wrote:
>
> >>>>> "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?
It's written in C.
>
> 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.
>
But, I'd swear the syslog messages are being buffered. Or maybe
something else is wrong - the messages just stopped appearing yesterday
around 5:00 - time to quit! But syslogd has been running for some
time. I don't know what else it could be.
> Anne> And sometimes it seems that printf to stderr appears in "news".
>
> I don't think that should be happening.
>
Maybe I was dreaming...
> 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.
>
I'll open my own file, but I sure wish I understood what's going on with
syslog, and the stderr buffering.
> --
> Andrew.
Thank you, Andrew.
Anne
--
***************************************************
Anne Wilson UCAR Unidata Program
anne@unidata.ucar.edu P.O. Box 3000
Boulder, CO 80307
----------------------------------------------------
Unidata WWW server http://www.unidata.ucar.edu/
****************************************************
Technical Details
Message-ID:
<3C0FBDFF.3B900505@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!logbridge.uoregon.edu!news-west.eli.net!telocity-west!TELOCITY!enews.sgi.com!nntp.wetware.com!attdv1!attdv2!ip.att.net!frgp!ucar!not-for-mailReferences:
<3C0EC505.81AF25D4@unidata.ucar.edu> <87d71tnlir.fsf@erlenstar.demon.co.uk>Show Full Headers
Complete Article Headers
Message-ID: <3C0FBDFF.3B900505@unidata.ucar.edu> Subject: Re: INN: flushing trace statments Date: Thu, 06 Dec 2001 11:50:39 -0700 From: Anne Wilson <anne@unidata.ucar.edu> References: <3C0EC505.81AF25D4@unidata.ucar.edu> <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!logbridge.uoregon.edu!news-west.eli.net!telocity-west!TELOCITY!enews.sgi.com!nntp.wetware.com!attdv1!attdv2!ip.att.net!frgp!ucar!not-for-mail Newsgroups: news.software.nntp Organization: UCAR Lines: 65 NNTP-Posting-Host: imogene.unidata.ucar.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: news.ucar.edu 1007664639 8457 128.117.140.28 (6 Dec 2001 18:50:39 GMT) X-Complaints-To: news@news.ucar.edu NNTP-Posting-Date: 6 Dec 2001 18:50:39 GMT X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.4.2-2smp i686) X-Accept-Language: en