From 43e0bba7eda73b825a3192c7f9794e2f125fe272 Mon Sep 17 00:00:00 2001 From: "sandro.labruzzo" Date: Tue, 23 Jan 2024 15:04:49 +0100 Subject: [PATCH] logg added during download --- .../main/java/eu/dnetlib/dhp/collection/orcid/ORCIDWorker.java | 3 ++- .../eu/dnetlib/dhp/collection/orcid/OrcidGetUpdatesFile.java | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dhp-workflows/dhp-aggregation/src/main/java/eu/dnetlib/dhp/collection/orcid/ORCIDWorker.java b/dhp-workflows/dhp-aggregation/src/main/java/eu/dnetlib/dhp/collection/orcid/ORCIDWorker.java index db6475dfa..fe59fe71f 100644 --- a/dhp-workflows/dhp-aggregation/src/main/java/eu/dnetlib/dhp/collection/orcid/ORCIDWorker.java +++ b/dhp-workflows/dhp-aggregation/src/main/java/eu/dnetlib/dhp/collection/orcid/ORCIDWorker.java @@ -113,7 +113,8 @@ public class ORCIDWorker extends Thread { file.hflush(); } - } + } else + log.error("Thread {} response is null for {} URL:{}", id, url, orcidId); } diff --git a/dhp-workflows/dhp-aggregation/src/main/java/eu/dnetlib/dhp/collection/orcid/OrcidGetUpdatesFile.java b/dhp-workflows/dhp-aggregation/src/main/java/eu/dnetlib/dhp/collection/orcid/OrcidGetUpdatesFile.java index 388d32b4e..2ba131e0f 100644 --- a/dhp-workflows/dhp-aggregation/src/main/java/eu/dnetlib/dhp/collection/orcid/OrcidGetUpdatesFile.java +++ b/dhp-workflows/dhp-aggregation/src/main/java/eu/dnetlib/dhp/collection/orcid/OrcidGetUpdatesFile.java @@ -128,7 +128,6 @@ public class OrcidGetUpdatesFile { .map(s -> s[0]) .forEach(s -> { try { - log.info("Adding item "); queue.put(s); } catch (InterruptedException e) { throw new RuntimeException(e);