From 99051d25ba210c36e1fec249512165cfd4f45309 Mon Sep 17 00:00:00 2001 From: Nigel Dunne <12184413+nigeldunne@users.noreply.github.com> Date: Tue, 3 Dec 2024 14:10:13 +0000 Subject: [PATCH] DTSCCI-1199: Add logging (#5867) --- .../civil/handler/tasks/CvpJoinLinkSchedulerHandler.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/uk/gov/hmcts/reform/civil/handler/tasks/CvpJoinLinkSchedulerHandler.java b/src/main/java/uk/gov/hmcts/reform/civil/handler/tasks/CvpJoinLinkSchedulerHandler.java index f9f93d27b2c..8c5fe2cbe8f 100644 --- a/src/main/java/uk/gov/hmcts/reform/civil/handler/tasks/CvpJoinLinkSchedulerHandler.java +++ b/src/main/java/uk/gov/hmcts/reform/civil/handler/tasks/CvpJoinLinkSchedulerHandler.java @@ -23,7 +23,8 @@ public class CvpJoinLinkSchedulerHandler extends BaseExternalTaskHandler { @Override public ExternalTaskData handleTask(ExternalTask externalTask) { List cases = searchService.getCases(); - log.info("CVP Join Link Scheduler job '{}' found {} case(s)", externalTask.getTopicName(), cases.size()); + List ids = cases.stream().map(CaseDetails::getId).sorted().toList(); + log.info("CVP Join Link Scheduler job '{}' found {} case(s) with ids {}", externalTask.getTopicName(), cases.size(), ids); cases.forEach(caseDetails -> { try {