diff --git a/x-pack/plugins/alerting/server/task_runner/execution_handler.test.ts b/x-pack/plugins/alerting/server/task_runner/execution_handler.test.ts index 2b8f816369664..9e7d9859b0553 100644 --- a/x-pack/plugins/alerting/server/task_runner/execution_handler.test.ts +++ b/x-pack/plugins/alerting/server/task_runner/execution_handler.test.ts @@ -858,7 +858,7 @@ describe('Execution Handler', () => { `); }); - it('does not populate the rule.url when the alert id is set to undefined', async () => { + it('does not populate the rule.url when the rule id is set to undefined', async () => { const execParams = { ...defaultExecutionParams, rule: ruleWithUrl, diff --git a/x-pack/plugins/alerting/server/task_runner/execution_handler.ts b/x-pack/plugins/alerting/server/task_runner/execution_handler.ts index aefd0b0c9dfff..c6836f35115dd 100644 --- a/x-pack/plugins/alerting/server/task_runner/execution_handler.ts +++ b/x-pack/plugins/alerting/server/task_runner/execution_handler.ts @@ -297,6 +297,9 @@ export class ExecutionHandler< return ruleUrl.toString(); } catch (error) { + this.logger.debug( + `Rule "${this.rule.id}" encountered an error while constructing the rule.url variable: ${error.message}` + ); return; } }