diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2012-10-30 14:59:01 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2012-10-30 14:59:01 +0100 |
commit | e711dc6e6bab36334ba980c1368852c1facf3f7b (patch) | |
tree | db73d51dc337b9bd91c2d29bf92d277dff80c957 /plugins/imklog/imklog.c | |
parent | 7faeff73ddba0cfcf5accca2bbc2b1e2330d8621 (diff) | |
parent | 9f74e3521fdfe0d2c68038b07ff64508a3d7d145 (diff) | |
download | rsyslog-e711dc6e6bab36334ba980c1368852c1facf3f7b.tar.gz rsyslog-e711dc6e6bab36334ba980c1368852c1facf3f7b.tar.bz2 rsyslog-e711dc6e6bab36334ba980c1368852c1facf3f7b.zip |
Merge branch 'master-ratelimit'
Diffstat (limited to 'plugins/imklog/imklog.c')
-rw-r--r-- | plugins/imklog/imklog.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/plugins/imklog/imklog.c b/plugins/imklog/imklog.c index 2897d76d..6eed33fe 100644 --- a/plugins/imklog/imklog.c +++ b/plugins/imklog/imklog.c @@ -101,11 +101,8 @@ static struct cnfparamblk modpblk = modpdescr }; - - static prop_t *pInputName = NULL; /* there is only one global inputName for all messages generated by this module */ -static prop_t *pLocalHostIP = NULL; /* a pseudo-constant propterty for 127.0.0.1 */ - +static prop_t *pLocalHostIP = NULL; static inline void initConfigSettings(void) @@ -148,7 +145,8 @@ enqMsg(uchar *msg, uchar* pszTag, int iFacility, int iSeverity, struct timeval * MsgSetTAG(pMsg, pszTag, ustrlen(pszTag)); pMsg->iFacility = iFacility; pMsg->iSeverity = iSeverity; - CHKiRet(submitMsg(pMsg)); + /* note: we do NOT use rate-limiting, as the kernel itself does rate-limiting */ + CHKiRet(submitMsg2(pMsg)); finalize_it: RETiRet; |