Skip to content

Commit f760905

Browse files
committed
Fix logging when a SendSubmissionBatchJob is enqueued
The log line already has a `job_id` field, which refers to the ScheduleDailyBatchDeliveriesJob that is being run. Rename the field that refers to the SendSubmissionBatchJob to `send_submission_batch_job_id` so this shows up in the logs.
1 parent e112be9 commit f760905

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

app/jobs/schedule_daily_batch_deliveries_job.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,11 @@ def perform
2323
send_batch_job = SendSubmissionBatchJob.perform_later(delivery:)
2424

2525
Rails.logger.info("Scheduled SendSubmissionBatchJob to send daily submission batch", {
26-
form_id: batch.form_id, mode: batch.mode, date: date, job_id: send_batch_job.job_id, delivery_id: delivery.id
26+
form_id: batch.form_id,
27+
mode: batch.mode,
28+
date: date,
29+
send_submission_batch_job_id: send_batch_job.job_id,
30+
delivery_id: delivery.id,
2731
})
2832
end
2933
end

0 commit comments

Comments
 (0)