summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2010-03-01 08:41:00 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2010-03-01 08:41:00 +0100
commitf9ec561e6ee96e2c864bb69773ad6fc7303aef58 (patch)
treef9a853ca64cfdd667da03472a26d230773807bb2
parent7b654060b624d976116d959f4cf799f940c00f0a (diff)
downloadrsyslog-f9ec561e6ee96e2c864bb69773ad6fc7303aef58.tar.gz
rsyslog-f9ec561e6ee96e2c864bb69773ad6fc7303aef58.tar.xz
rsyslog-f9ec561e6ee96e2c864bb69773ad6fc7303aef58.zip
cleanup: removed debug messages that accidently made it into the commit
-rw-r--r--runtime/rule.c1
-rw-r--r--runtime/srutils.c2
2 files changed, 1 insertions, 2 deletions
diff --git a/runtime/rule.c b/runtime/rule.c
index 182d616a..4c2c9edb 100644
--- a/runtime/rule.c
+++ b/runtime/rule.c
@@ -164,6 +164,7 @@ shouldProcessThisMessage(rule_t *pRule, msg_t *pMsg, int *bProcessMsg)
if(pRule->f_filter_type == FILTER_PRI) {
/* skip messages that are incorrect priority */
+dbgprintf("testing filter, f_pmask %d\n", pRule->f_filterData.f_pmask[pMsg->iFacility]);
if ( (pRule->f_filterData.f_pmask[pMsg->iFacility] == TABLE_NOPRI) || \
((pRule->f_filterData.f_pmask[pMsg->iFacility] & (1<<pMsg->iSeverity)) == 0) )
bRet = 0;
diff --git a/runtime/srutils.c b/runtime/srutils.c
index 4bd552da..c403b312 100644
--- a/runtime/srutils.c
+++ b/runtime/srutils.c
@@ -500,14 +500,12 @@ int decodeSyslogName(uchar *name, syslogName_t *codetab)
for (p = buf; *p; p++)
if (isupper((int) *p))
*p = tolower((int) *p);
-dbgprintf("obtained syslogName '%s'\n", buf);
for (c = codetab; c->c_name; c++)
if (!strcmp((char*) buf, (char*) c->c_name))
{
dbgprintf(" ==> %d\n", c->c_val);
return (c->c_val);
}
-dbgprintf("syslogName '%s' NOT found!\n", buf);
return (-1);
}