Path: utzoo!utstat!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!umich!gumby!peirce From: peirce@gumby.cc.wmich.edu (Leonard J. Peirce) Newsgroups: news.software.nntp Subject: Re: Wierd problem with logging of statistics Message-ID: <1990Apr9.213114.2449@gumby.cc.wmich.edu> Date: 9 Apr 90 21:31:14 GMT References: <648@massey.ac.nz> <425@gazette.bcm.tmc.edu> Organization: Western Michigan University Lines: 36 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