mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-16 11:00:41 +01:00
Fix: check ReportSuspension option before print message about action retry
This commit is contained in:
parent
53fb41a1eb
commit
a7ffb1524f
12
action.c
12
action.c
@ -763,11 +763,13 @@ static void ATTR_NONNULL() actionRetry(action_t * const pThis, wti_t * const pWt
|
|||||||
{
|
{
|
||||||
setSuspendMessageConfVars(pThis);
|
setSuspendMessageConfVars(pThis);
|
||||||
actionSetState(pThis, pWti, ACT_STATE_RTRY);
|
actionSetState(pThis, pWti, ACT_STATE_RTRY);
|
||||||
LogMsg(0, RS_RET_SUSPENDED, LOG_WARNING,
|
if(pThis->bReportSuspension) {
|
||||||
"action '%s' suspended (module '%s'), retry %d. There should "
|
LogMsg(0, RS_RET_SUSPENDED, LOG_WARNING,
|
||||||
"be messages before this one giving the reason for suspension.",
|
"action '%s' suspended (module '%s'), retry %d. There should "
|
||||||
pThis->pszName, pThis->pMod->pszName,
|
"be messages before this one giving the reason for suspension.",
|
||||||
getActionNbrResRtry(pWti, pThis));
|
pThis->pszName, pThis->pMod->pszName,
|
||||||
|
getActionNbrResRtry(pWti, pThis));
|
||||||
|
}
|
||||||
incActionResumeInRow(pWti, pThis);
|
incActionResumeInRow(pWti, pThis);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user