From 069b660d16a245f914879e149cbb7192bbe11330 Mon Sep 17 00:00:00 2001 From: Matt Date: Mon, 4 Nov 2024 11:21:19 +0000 Subject: [PATCH] Log pollable task and scheduled job url on PD failure --- .../service/scheduledjob/jobs/ScheduledThirdPartySync.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/webapp/src/main/java/com/box/l10n/mojito/service/scheduledjob/jobs/ScheduledThirdPartySync.java b/webapp/src/main/java/com/box/l10n/mojito/service/scheduledjob/jobs/ScheduledThirdPartySync.java index a232543e5a..b7feb018f2 100644 --- a/webapp/src/main/java/com/box/l10n/mojito/service/scheduledjob/jobs/ScheduledThirdPartySync.java +++ b/webapp/src/main/java/com/box/l10n/mojito/service/scheduledjob/jobs/ScheduledThirdPartySync.java @@ -153,8 +153,10 @@ public void onFailure(JobExecutionContext context, JobExecutionException jobExce pd.triggerIncident(scheduledJob.getUuid(), payload); } catch (PagerDutyException e) { logger.error( - "Couldn't send PagerDuty notification for failed third party sync of repository: '{}' -", + "Couldn't send PagerDuty notification for failed third party sync of repository: '{}', Pollable Task URL: '{}', Scheduled Job: '{}'", scheduledJob.getRepository().getName(), + pollableTaskUrl, + scheduledJobUrl, e); meterRegistry .counter(