Skip to content

Commit

Permalink
Log pollable task and scheduled job url on PD failure
Browse files Browse the repository at this point in the history
  • Loading branch information
mattwilshire committed Nov 4, 2024
1 parent 88fa2ea commit 069b660
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 069b660

Please sign in to comment.