More debugging enabled
This commit is contained in:
parent
7fb1a3106f
commit
752a9fd323
@ -1,5 +1,7 @@
|
||||
$Id$
|
||||
|
||||
WARNING: Extra debug logging enabled for checking internet news dupes.
|
||||
This will just make bigger logfiles if you gate news.
|
||||
|
||||
MBSEBBS History.
|
||||
|
||||
|
@ -117,8 +117,11 @@ int CheckDupe(unsigned long crc, int idx, int max)
|
||||
dupes[idx].max = max;
|
||||
}
|
||||
|
||||
Syslog('n', "dupetest %08x %d %d", crc, idx, max);
|
||||
|
||||
for (i = 0; i < dupes[idx].count; i++) {
|
||||
if (dupes[idx].crcs[i] == crc) {
|
||||
Syslog('n', "dupe at %d", i);
|
||||
return TRUE;
|
||||
}
|
||||
}
|
||||
|
@ -824,17 +824,17 @@ int rfc2ftn(FILE *fp, faddr *recipient)
|
||||
fflush(ofp);
|
||||
rewind(ofp);
|
||||
|
||||
// Syslog('n', "========== Fido start");
|
||||
// while (fgets(temp, 4096, ofp) != NULL) {
|
||||
Syslog('n', "========== Fido start");
|
||||
while (fgets(temp, 4096, ofp) != NULL) {
|
||||
/*
|
||||
* Only log kludges, skip the body
|
||||
*/
|
||||
// if ((temp[0] == '\001') || !strncmp(temp, "AREA:", 5) || !strncmp(temp, "SEEN-BY", 7)) {
|
||||
// Striplf(temp);
|
||||
// Syslogp('n', printable(temp, 0));
|
||||
// }
|
||||
// }
|
||||
// Syslog('n', "========== Fido end");
|
||||
if ((temp[0] == '\001') || !strncmp(temp, "AREA:", 5) || !strncmp(temp, "SEEN-BY", 7)) {
|
||||
Striplf(temp);
|
||||
Syslogp('n', printable(temp, 0));
|
||||
}
|
||||
}
|
||||
Syslog('n', "========== Fido end");
|
||||
|
||||
if (newsmode)
|
||||
rc = postecho(NULL, fmsg->from, fmsg->to, origin, fmsg->subj, fmsg->date, fmsg->flags, 0, ofp, FALSE);
|
||||
|
Reference in New Issue
Block a user