summaryrefslogtreecommitdiffstats
path: root/action.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2011-04-21 14:27:41 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2011-04-21 14:27:41 +0200
commit13ecf8a6ef5a5b69819865a2b9b524d4c561f5de (patch)
tree9de0040d5d4af84c980c19b0aa64de7551b063e8 /action.c
parent82fa17ae5621849790eb39ed046d58333ede347c (diff)
downloadrsyslog-13ecf8a6ef5a5b69819865a2b9b524d4c561f5de.tar.gz
rsyslog-13ecf8a6ef5a5b69819865a2b9b524d4c561f5de.tar.xz
rsyslog-13ecf8a6ef5a5b69819865a2b9b524d4c561f5de.zip
step: config handler setting from syslogd.c moved to rsconf.c
Diffstat (limited to 'action.c')
-rw-r--r--action.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/action.c b/action.c
index 69dc64f5..0ec64236 100644
--- a/action.c
+++ b/action.c
@@ -81,6 +81,7 @@
#include "errmsg.h"
#include "batch.h"
#include "wti.h"
+#include "rsconf.h"
#include "datetime.h"
#include "unicode-helper.h"
#include "atomic.h"
@@ -1679,9 +1680,10 @@ addAction(action_t **ppAction, modInfo_t *pMod, void *pModData, omodStringReques
pAction->pMod = pMod;
pAction->pModData = pModData;
/* now check if the module is compatible with select features */
- if(pMod->isCompatibleWithFeature(sFEATURERepeatedMsgReduction) == RS_RET_OK)
- pAction->f_ReduceRepeated = bReduceRepeatMsgs;
- else {
+ if(pMod->isCompatibleWithFeature(sFEATURERepeatedMsgReduction) == RS_RET_OK) {
+dbgprintf("XXXX: loadConf is %p in action.c\n", loadConf);
+ pAction->f_ReduceRepeated = loadConf->globals.bReduceRepeatMsgs;
+ } else {
DBGPRINTF("module is incompatible with RepeatedMsgReduction - turned off\n");
pAction->f_ReduceRepeated = 0;
}