mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-20 02:40:42 +01:00
impstats: Readded failed statscounter incrementation in Action Queue
proberly closes https://github.com/rsyslog/rsyslog/issues/395 Needs to be tested/verified
This commit is contained in:
parent
2848b5f294
commit
026f58ec99
4
action.c
4
action.c
@ -1458,6 +1458,10 @@ doSubmitToActionQ(action_t * const pAction, wti_t * const pWti, msg_t *pMsg)
|
||||
}
|
||||
pWti->execState.bPrevWasSuspended
|
||||
= (iRet == RS_RET_SUSPENDED || iRet == RS_RET_ACTION_FAILED);
|
||||
|
||||
if (iRet == RS_RET_ACTION_FAILED) /* Increment failed counter */
|
||||
STATSCOUNTER_INC(pAction->ctrFail, pAction->mutCtrFail);
|
||||
|
||||
DBGPRINTF("action '%s': set suspended state to %d\n",
|
||||
pAction->pszName, pWti->execState.bPrevWasSuspended);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user