summaryrefslogtreecommitdiffstats
path: root/runtime/parser.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2009-11-04 14:21:08 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2009-11-04 14:21:08 +0100
commitb6a92e2f23895cadf9f0ea2de64021912bd2eeb0 (patch)
tree734177c4783d946ea28af05dfd75b60ae6d6d2c9 /runtime/parser.c
parentef661fe13c0ab5018afedb1cb5b8cffab05ad7c4 (diff)
downloadrsyslog-b6a92e2f23895cadf9f0ea2de64021912bd2eeb0.tar.gz
rsyslog-b6a92e2f23895cadf9f0ea2de64021912bd2eeb0.tar.xz
rsyslog-b6a92e2f23895cadf9f0ea2de64021912bd2eeb0.zip
added $RulesetParser config directive
The implementation is now almost done and works, including doc. I now need to verify shutdown, guess there are some resource leaks left...
Diffstat (limited to 'runtime/parser.c')
-rw-r--r--runtime/parser.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/runtime/parser.c b/runtime/parser.c
index e87068fc..0689657f 100644
--- a/runtime/parser.c
+++ b/runtime/parser.c
@@ -450,9 +450,10 @@ ParseMsg(msg_t *pMsg)
* loger possible.
*/
pParserList = ruleset.GetParserList(pMsg);
- if(pParserList == NULL)
+ if(pParserList == NULL) {
pParserList = pDfltParsLst;
- DBGPRINTF("Using parser list %p%s.\n", pParserList,
+ }
+ DBGPRINTF("parse using parser list %p%s.\n", pParserList,
(pParserList == pDfltParsLst) ? " (the default list)" : "");
bIsSanitized = FALSE;
@@ -467,7 +468,8 @@ ParseMsg(msg_t *pMsg)
}
bIsSanitized = TRUE;
}
- localRet = pParserList->pParser->pModule->mod.pm.parse(pMsg);
+ localRet = pParser->pModule->mod.pm.parse(pMsg);
+ dbgprintf("Parser '%s' returned %d\n", pParser->pName, localRet);
if(localRet != RS_RET_COULD_NOT_PARSE)
break;
pParserList = pParserList->pNext;