diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2011-04-21 14:27:41 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2011-04-21 14:27:41 +0200 |
commit | 13ecf8a6ef5a5b69819865a2b9b524d4c561f5de (patch) | |
tree | 9de0040d5d4af84c980c19b0aa64de7551b063e8 /action.c | |
parent | 82fa17ae5621849790eb39ed046d58333ede347c (diff) | |
download | rsyslog-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.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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; } |