Pingpong logging is using a #define
This commit is contained in:
parent
351e4bbac5
commit
6b92837005
@ -591,6 +591,9 @@ int send_msg(ncs_list *tnsl, const char *format, ...)
|
||||
vsnprintf(buf, 512, format, va_ptr);
|
||||
va_end(va_ptr);
|
||||
|
||||
#ifndef PING_PONG_LOG
|
||||
if (strcmp(buf, "PING\r\n") && strcmp(buf, "PONG\r\n"))
|
||||
#endif
|
||||
Syslog('r', "IBC: > %s: %s", tnsl->server, printable(buf, 0));
|
||||
|
||||
if (sendto(tnsl->socket, buf, strlen(buf), 0, (struct sockaddr *)&tnsl->servaddr_in, sizeof(struct sockaddr_in)) == -1) {
|
||||
@ -1653,6 +1656,9 @@ void receiver(struct servent *se)
|
||||
|
||||
tnsl->last = now;
|
||||
crbuf[strlen(crbuf) -2] = '\0';
|
||||
#ifndef PING_PONG_LOG
|
||||
if (strcmp(crbuf, (char *)"PING") && strcmp(crbuf, (char *)"PONG"))
|
||||
#endif
|
||||
Syslog('r', "IBC: < %s: \"%s\"", hostname, printable(crbuf, 0));
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user