🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #509

Re: Wierd problem with logging of statistics

#509
From: Leonard J. Peirce
Date: Mon, 09 Apr 1990 21:31
37 lines
2368 bytes
In an article a while back, I wrote
>In article <648@massey.ac.nz> K.Spagnolo@massey.ac.nz (Ken Spagnolo) writes:
>>Last week I brought up nntp 1.5.8 and everything seemed to be going
>>just fine.  But over the weekend, my logging went from including
>>entries for "ihave_stats" and "times" to only telling me when my
>>news feeder connected.  As I wasn't here over the weekend, I'm quite
>>sure I made no changes that should effect this!  I'm running on a
>>4.3 BSD system with FAKESYSLOG defined (I don't like to clutter the
>>real one), as well as SYSLOG and LOG.  LOG is the one that is supposed
>>to give you the extra stats entries.
>
>I had that same problem.  The fix is to change lines 87-89 of common/conf.h
>from
> [...]

And then in article <425@gazette.bcm.tmc.edu> sob@watson.bcm.tmc.edu (Stan Barber) writes:
>I can't find a reason why this does not work as expected. Defining LOG, SYSLOG,
>& FAKESYSLOG should log it to a FAKESYSLOG-named file.

It will work, as long as you #define LOG after the #ifdef SYSLOG -- #endif
because if you #define it before, LOG winds up being #undef'd.

I've verified this more than once.  Everything works fine if LOG winds being
#defined somehow.  It just seems that the #undef LOG should be #define LOG
(at least that's what the comments seem to be saying).  Or perhaps it should be

#ifndef SYSLOG
#undef   LOG
#endif

Even the comment says "you can only have LOG if you have SYSLOG."
--
Leonard J. Peirce               Internet:  peirce@gumby.cc.wmich.edu
Western Michigan University                peirce@gw.wmich.edu
Academic Computer Center        UUCP:      ...!uunet!sharkey!wmichgw!peirce
Kalamazoo, MI  49008            Phone:     (616) 387-5469
Technical Details
Message-ID: <1990Apr9.213114.2449@gumby.cc.wmich.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp!utzoo!utstat!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!umich!gumby!peirce
References: <648@massey.ac.nz> <425@gazette.bcm.tmc.edu>

Show Full Headers
Complete Article Headers
Message-ID: <1990Apr9.213114.2449@gumby.cc.wmich.edu>
Subject: Re: Wierd problem with logging of statistics
Date: Mon, 09 Apr 1990 21:31:14 +0000
From: peirce@gumby.cc.wmich.edu (Leonard J. Peirce)
References: <648@massey.ac.nz> <425@gazette.bcm.tmc.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp!utzoo!utstat!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!umich!gumby!peirce
Newsgroups: news.software.nntp
Organization: Western Michigan University
Lines: 36