mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-16 05:10:40 +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);
|
||||
actionSetState(pThis, pWti, ACT_STATE_RTRY);
|
||||
LogMsg(0, RS_RET_SUSPENDED, LOG_WARNING,
|
||||
"action '%s' suspended (module '%s'), retry %d. There should "
|
||||
"be messages before this one giving the reason for suspension.",
|
||||
pThis->pszName, pThis->pMod->pszName,
|
||||
getActionNbrResRtry(pWti, pThis));
|
||||
if(pThis->bReportSuspension) {
|
||||
LogMsg(0, RS_RET_SUSPENDED, LOG_WARNING,
|
||||
"action '%s' suspended (module '%s'), retry %d. There should "
|
||||
"be messages before this one giving the reason for suspension.",
|
||||
pThis->pszName, pThis->pMod->pszName,
|
||||
getActionNbrResRtry(pWti, pThis));
|
||||
}
|
||||
incActionResumeInRow(pWti, pThis);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user