summaryrefslogtreecommitdiffstats
path: root/plugins/imudp
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2009-10-08 16:36:17 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2009-10-08 16:36:17 +0200
commitec56b763b83677d1e9cd02a7ae610caf62e902bb (patch)
treebe7717d7db2fc5bf49b29fa1eb930d1ac51ebfa3 /plugins/imudp
parentd85efd07e006d4d9031019aa9ac9757d303a8b36 (diff)
downloadrsyslog-ec56b763b83677d1e9cd02a7ae610caf62e902bb.tar.gz
rsyslog-ec56b763b83677d1e9cd02a7ae610caf62e902bb.tar.xz
rsyslog-ec56b763b83677d1e9cd02a7ae610caf62e902bb.zip
bugfix in debug system and more instrumentation to find an issue
bugfix: debug string larger than 1K were improperly displayed. Max size is now 32K, and if a string is even longer it is meaningful truncated.
Diffstat (limited to 'plugins/imudp')
-rw-r--r--plugins/imudp/imudp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/imudp/imudp.c b/plugins/imudp/imudp.c
index 735042a4..3fabf1a2 100644
--- a/plugins/imudp/imudp.c
+++ b/plugins/imudp/imudp.c
@@ -244,7 +244,8 @@ processSocket(int fd, struct sockaddr_storage *frominetPrev, int *pbIsPermitted,
}
}
- DBGPRINTF("recv(%d,%d)/%s,acl:%d,msg:%.80s\n", fd, (int) lenRcvBuf, fromHost, *pbIsPermitted, pRcvBuf);
+ //DBGPRINTF("recv(%d,%d)/%s,acl:%d,msg:%.80s\n", fd, (int) lenRcvBuf, fromHost, *pbIsPermitted, pRcvBuf);
+ DBGPRINTF("recv(%d,%d)/%s,acl:%d,msg:%s\n", fd, (int) lenRcvBuf, fromHost, *pbIsPermitted, pRcvBuf);
if(*pbIsPermitted) {
if((iTimeRequery == 0) || (iNbrTimeUsed++ % iTimeRequery) == 0) {