summaryrefslogtreecommitdiffstats
path: root/plugins/imrelp
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-03-27 11:03:02 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2008-03-27 11:03:02 +0000
commit5455d972d8aaf468f8f322336edfa0b1d1901cd9 (patch)
tree96d320faf4ed1f07dc7278a227a13d58f443e884 /plugins/imrelp
parent562906e64aa11fbf0e2b104b55b2a98233df9ae5 (diff)
downloadrsyslog-5455d972d8aaf468f8f322336edfa0b1d1901cd9.tar.gz
rsyslog-5455d972d8aaf468f8f322336edfa0b1d1901cd9.tar.xz
rsyslog-5455d972d8aaf468f8f322336edfa0b1d1901cd9.zip
used new librelp entry point to set "syslog" command as desired feature
Diffstat (limited to 'plugins/imrelp')
-rw-r--r--plugins/imrelp/imrelp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/imrelp/imrelp.c b/plugins/imrelp/imrelp.c
index 0cb69cdc..d0210f4e 100644
--- a/plugins/imrelp/imrelp.c
+++ b/plugins/imrelp/imrelp.c
@@ -96,6 +96,7 @@ static rsRetVal addListener(void __attribute__((unused)) *pVal, uchar *pNewVal)
if(pRelpEngine == NULL) {
CHKiRet(relpEngineConstruct(&pRelpEngine));
CHKiRet(relpEngineSetDbgprint(pRelpEngine, dbgprintf));
+ CHKiRet(relpEngineSetEnableCmd(pRelpEngine, (uchar*) "syslog", eRelpCmdState_Desired));
CHKiRet(relpEngineSetSyslogRcv(pRelpEngine, onSyslogRcv));
}