summaryrefslogtreecommitdiffstats
path: root/plugins/omruleset/omruleset.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2012-10-15 12:31:56 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2012-10-15 12:31:56 +0200
commit706ddb492345e53d36084d0b843f237da865c6d4 (patch)
tree5c21c06e0f4c0ce15fa2d8413c149d687be43e72 /plugins/omruleset/omruleset.c
parenta3a3a322d8c7d40dfed0765457d26a484a624bce (diff)
parent2014cf85627b8774e8c36ddecad04f1ebf43020b (diff)
downloadrsyslog-706ddb492345e53d36084d0b843f237da865c6d4.tar.gz
rsyslog-706ddb492345e53d36084d0b843f237da865c6d4.tar.bz2
rsyslog-706ddb492345e53d36084d0b843f237da865c6d4.zip
Merge branch 'master' into master-ratelimit
Conflicts: ChangeLog doc/v7compatibility.html
Diffstat (limited to 'plugins/omruleset/omruleset.c')
-rw-r--r--plugins/omruleset/omruleset.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/omruleset/omruleset.c b/plugins/omruleset/omruleset.c
index 67aee97e..6c770c94 100644
--- a/plugins/omruleset/omruleset.c
+++ b/plugins/omruleset/omruleset.c
@@ -165,6 +165,9 @@ CODE_STD_STRING_REQUESTparseSelectorAct(1)
p += sizeof(":omruleset:") - 1; /* eat indicator sequence (-1 because of '\0'!) */
CHKiRet(createInstance(&pData));
+ errmsg.LogError(0, RS_RET_DEPRECATED, "warning: omruleset is deprecated, consider "
+ "using the 'call' statement instead");
+
/* check if a non-standard template is to be applied */
if(*(p-1) == ';')
--p;
@@ -237,6 +240,9 @@ CODEmodInit_QueryRegCFSLineHdlr
CHKiRet(objUse(ruleset, CORE_COMPONENT));
CHKiRet(objUse(errmsg, CORE_COMPONENT));
+ errmsg.LogError(0, RS_RET_DEPRECATED, "warning: omruleset is deprecated, consider "
+ "using the 'call' statement instead");
+
CHKiRet(omsdRegCFSLineHdlr((uchar *)"actionomrulesetrulesetname", 0, eCmdHdlrGetWord,
setRuleset, NULL, STD_LOADABLE_MODULE_ID));
CHKiRet(omsdRegCFSLineHdlr((uchar *)"resetconfigvariables", 1, eCmdHdlrCustomHandler,