Removed debug logging

This commit is contained in:
Michiel Broek 2007-10-14 15:29:58 +00:00
parent e43bfba131
commit 72226bff0c
2 changed files with 2 additions and 6 deletions

View File

@ -64,10 +64,7 @@ void send_xlat(char *inp)
char temp[1024]; char temp[1024];
strncpy(temp, chartran(inp), sizeof(temp) -1); strncpy(temp, chartran(inp), sizeof(temp) -1);
// Syslog('n', "> \"%s\"", printable(temp, 0));
PUTSTR(temp); PUTSTR(temp);
PUTSTR((char *)"\r\n"); PUTSTR((char *)"\r\n");
FLUSHOUT(); FLUSHOUT();
sentbytes += (strlen(temp) + 2); sentbytes += (strlen(temp) + 2);
@ -141,8 +138,6 @@ void command_abhs(char *buf)
art = atoi(opt); art = atoi(opt);
} }
Syslog('n', "Article %lu", art);
if (art == 0L) { if (art == 0L) {
send_nntp("420 No current article has been selected"); send_nntp("420 No current article has been selected");
return; return;

View File

@ -284,7 +284,8 @@ void send_nntp(const char *format, ...)
/* /*
* Only log responses * Only log responses
*/ */
if (out[4] == ' ') { if (out[3] == ' ') {
memset(&p, 0, sizeof(p));
strncpy(p, out, 3); strncpy(p, out, 3);
if (atoi(p) > 0) { if (atoi(p) > 0) {
Syslog('n', "> \"%s\"", printable(out, 0)); Syslog('n', "> \"%s\"", printable(out, 0));