diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2012-10-22 10:19:54 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2012-10-22 10:19:54 +0200 |
commit | 3d0122be52faa6009f43f151a1ca24cf30ef12cc (patch) | |
tree | 3938793616ff53bfc66b5719a46c688d7f656cf5 /tools/omdiscard.c | |
parent | be7bd9b4717a50db47e19edd4cd6ff897ff0a2ec (diff) | |
download | rsyslog-3d0122be52faa6009f43f151a1ca24cf30ef12cc.tar.gz rsyslog-3d0122be52faa6009f43f151a1ca24cf30ef12cc.tar.bz2 rsyslog-3d0122be52faa6009f43f151a1ca24cf30ef12cc.zip |
disable deprecated warnings in omdiscard/omruleset
... because action-like statements in action lists are not supported
in 7.1. This will be available in 7.3, but it is too late to do this in
7.1. So we disable the warnings and re-enable them in 7.3. Functionality-
wise, this is no problem at all as the legacy constructs are still
fully supported.
Thanks to forum user "canadaboy" for mentioning this problem.
Diffstat (limited to 'tools/omdiscard.c')
-rw-r--r-- | tools/omdiscard.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/omdiscard.c b/tools/omdiscard.c index 15c6ea82..08cd7491 100644 --- a/tools/omdiscard.c +++ b/tools/omdiscard.c @@ -95,9 +95,13 @@ CODE_STD_STRING_REQUESTparseSelectorAct(0) if(*p == '~') { dbgprintf("discard\n"); + /* re-enable in v7.3: requires action list to support + * action-like statements, something that is too late to + * do in 7.1. errmsg.LogError(0, RS_RET_DEPRECATED, "warning: ~ action " "is deprecated, consider using the 'stop' " "statement instead"); + */ } else { iRet = RS_RET_CONFLINE_UNPROCESSED; } |