diff --git a/x-pack/plugins/alerts/server/task_runner/task_runner.test.ts b/x-pack/plugins/alerts/server/task_runner/task_runner.test.ts index f99bf698ef8dc..2c49eed0cf6e3 100644 --- a/x-pack/plugins/alerts/server/task_runner/task_runner.test.ts +++ b/x-pack/plugins/alerts/server/task_runner/task_runner.test.ts @@ -409,7 +409,7 @@ describe('Task Runner', () => { ); expect(logger.debug).nthCalledWith( 3, - `no actions executed for alert test:1: 'alert-name': alert is muted.` + `no scheduling of actions for alert test:1: 'alert-name': alert is muted.` ); expect(logger.debug).nthCalledWith( 4, @@ -519,7 +519,7 @@ describe('Task Runner', () => { ); expect(logger.debug).nthCalledWith( 3, - `skipping action execution for '2' in alert test:1: 'alert-name': instance is muted` + `skipping scheduling of actions for '2' in alert test:1: 'alert-name': instance is muted` ); expect(logger.debug).nthCalledWith( 4, diff --git a/x-pack/plugins/alerts/server/task_runner/task_runner.ts b/x-pack/plugins/alerts/server/task_runner/task_runner.ts index 86ff6fd374eab..0c486dad070ef 100644 --- a/x-pack/plugins/alerts/server/task_runner/task_runner.ts +++ b/x-pack/plugins/alerts/server/task_runner/task_runner.ts @@ -260,7 +260,7 @@ export class TaskRunner { const shouldExecuteAction = !throttled && !muted; if (!shouldExecuteAction) { this.logger.debug( - `skipping action execution for '${alertInstanceName}' in alert ${alertLabel}: instance is ${ + `skipping scheduling of actions for '${alertInstanceName}' in alert ${alertLabel}: instance is ${ muted ? 'muted' : 'throttled' }` ); @@ -272,7 +272,7 @@ export class TaskRunner { ) ); } else { - this.logger.debug(`no actions executed for alert ${alertLabel}: alert is muted.`); + this.logger.debug(`no scheduling of actions for alert ${alertLabel}: alert is muted.`); } return { @@ -555,7 +555,7 @@ function scheduleActionsForRecoveredInstances(params: ScheduleActionsForRecovere for (const id of recoveredIds) { if (mutedInstanceIdsSet.has(id)) { logger.debug( - `skipping action execution for '${id}' in alert ${alertLabel}: instance is muted` + `skipping scheduling of actions for '${id}' in alert ${alertLabel}: instance is muted` ); } else { const instance = recoveredAlertInstances[id];