From e30d3863104807ef99b92f1e5b716f71a7ca7251 Mon Sep 17 00:00:00 2001 From: Viacheslav_Poliakov Date: Thu, 6 Jun 2024 23:20:39 +0300 Subject: [PATCH] fix(mod-search): fix export of cql files - fix logic 3 Closes: MSEARCH-762 --- src/main/java/org/folio/search/service/ResourceIdService.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/folio/search/service/ResourceIdService.java b/src/main/java/org/folio/search/service/ResourceIdService.java index 7107793c2..3b5916fee 100644 --- a/src/main/java/org/folio/search/service/ResourceIdService.java +++ b/src/main/java/org/folio/search/service/ResourceIdService.java @@ -125,7 +125,8 @@ public void streamResourceIdsForJob(ResourceIdsJobEntity job, String tenantId) { job.setStatus(StreamJobStatus.COMPLETED); log.info("[SLY] *** AFTER SAVE IDS:"); List> ids = idsTemporaryRepository.getIds(tableName); - log.info("[SLY] Amount: {}, idsTemporaryRepository.getIds: {}]", ids == null ? "null" : ids.size(), ids); + int size = ids == null ? -1 : ids.size(); + log.info("[SLY] Amount: {}, idsTemporaryRepository.getIds: {}]", size, ids); } catch (Exception e) { log.warn("Failed to process resource ids job with id = {}, msg: {}", job.getId(), e.getMessage()); idsTemporaryRepository.dropTableForIds(tableName);