diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2011-12-20 18:19:14 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2011-12-20 18:19:14 +0100 |
commit | 832d6e1e2c88455be6bb0929591715499602ad56 (patch) | |
tree | 0849bc75fc199fd0d4dc7b118cbdcdddabe530db /tcps_sess.c | |
parent | 8d2f6675c47c0b7b6d7c644004507d0a85a90cb4 (diff) | |
download | rsyslog-832d6e1e2c88455be6bb0929591715499602ad56.tar.gz rsyslog-832d6e1e2c88455be6bb0929591715499602ad56.tar.xz rsyslog-832d6e1e2c88455be6bb0929591715499602ad56.zip |
imtcp: added stats counters
also adds counters to other users of tcpsrv.c method, but these do not
work if default submit method is overwritten (currently only the case
for imdiag, what we don't consider a problem)
Diffstat (limited to 'tcps_sess.c')
-rw-r--r-- | tcps_sess.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tcps_sess.c b/tcps_sess.c index 99af0cb8..0fd3e713 100644 --- a/tcps_sess.c +++ b/tcps_sess.c @@ -259,6 +259,7 @@ defaultDoSubmitMessage(tcps_sess_t *pThis, struct syslogTime *stTime, time_t ttG CHKiRet(MsgSetRcvFromIP(pMsg, pThis->fromHostIP)); MsgSetRuleset(pMsg, pThis->pLstnInfo->pRuleset); + STATSCOUNTER_INC(pThis->pLstnInfo->ctrSubmit, pThis->pLstnInfo->mutCtrSubmit); if(pMultiSub == NULL) { CHKiRet(submitMsg(pMsg)); } else { |