More debugging enabled

This commit is contained in:
Michiel Broek 2002-08-16 21:29:24 +00:00
parent 7fb1a3106f
commit 752a9fd323
3 changed files with 13 additions and 8 deletions

View File

@ -1,5 +1,7 @@
$Id$ $Id$
WARNING: Extra debug logging enabled for checking internet news dupes.
This will just make bigger logfiles if you gate news.
MBSEBBS History. MBSEBBS History.

View File

@ -117,8 +117,11 @@ int CheckDupe(unsigned long crc, int idx, int max)
dupes[idx].max = max; dupes[idx].max = max;
} }
Syslog('n', "dupetest %08x %d %d", crc, idx, max);
for (i = 0; i < dupes[idx].count; i++) { for (i = 0; i < dupes[idx].count; i++) {
if (dupes[idx].crcs[i] == crc) { if (dupes[idx].crcs[i] == crc) {
Syslog('n', "dupe at %d", i);
return TRUE; return TRUE;
} }
} }

View File

@ -824,17 +824,17 @@ int rfc2ftn(FILE *fp, faddr *recipient)
fflush(ofp); fflush(ofp);
rewind(ofp); rewind(ofp);
// Syslog('n', "========== Fido start"); Syslog('n', "========== Fido start");
// while (fgets(temp, 4096, ofp) != NULL) { while (fgets(temp, 4096, ofp) != NULL) {
/* /*
* Only log kludges, skip the body * Only log kludges, skip the body
*/ */
// if ((temp[0] == '\001') || !strncmp(temp, "AREA:", 5) || !strncmp(temp, "SEEN-BY", 7)) { if ((temp[0] == '\001') || !strncmp(temp, "AREA:", 5) || !strncmp(temp, "SEEN-BY", 7)) {
// Striplf(temp); Striplf(temp);
// Syslogp('n', printable(temp, 0)); Syslogp('n', printable(temp, 0));
// } }
// } }
// Syslog('n', "========== Fido end"); Syslog('n', "========== Fido end");
if (newsmode) if (newsmode)
rc = postecho(NULL, fmsg->from, fmsg->to, origin, fmsg->subj, fmsg->date, fmsg->flags, 0, ofp, FALSE); rc = postecho(NULL, fmsg->from, fmsg->to, origin, fmsg->subj, fmsg->date, fmsg->flags, 0, ofp, FALSE);