From cb45d87103d5b554c91ff60c641eac1570216dba Mon Sep 17 00:00:00 2001 From: "c.dumitru@orcid.org" Date: Fri, 27 Oct 2023 10:54:01 +0300 Subject: [PATCH] removed debugging code --- .../org/orcid/scheduler/loader/io/OrgDataClient.java | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/orcid-scheduler-web/src/main/java/org/orcid/scheduler/loader/io/OrgDataClient.java b/orcid-scheduler-web/src/main/java/org/orcid/scheduler/loader/io/OrgDataClient.java index 85e440b0b4f..8b1a791a14b 100644 --- a/orcid-scheduler-web/src/main/java/org/orcid/scheduler/loader/io/OrgDataClient.java +++ b/orcid-scheduler-web/src/main/java/org/orcid/scheduler/loader/io/OrgDataClient.java @@ -32,9 +32,7 @@ public class OrgDataClient { */ public T get(String url, String userAgent, Class type) { JerseyClientResponse response = jerseyClientHelperForOrgLoaders.executeGetRequest(url, null, null, false, Map.of(), Map.of("User-Agent", userAgent), type, String.class); - int status = response.getStatus(); - LOGGER.error("!!!!!!!!!!!!!!!!!!!! download file URL: " + url ); - + int status = response.getStatus(); if (status != 200) { LOGGER.error("Unable to fetch file {}: {}", new Object[] { url, status }); return null; @@ -49,13 +47,8 @@ public T get(String url, String userAgent, Class type) { * @return boolean indicator of success */ public boolean downloadFile(String url, String userAgent, String localFilePath) { - LOGGER.error("!!!!!!!!!!!!!!!!!!!! download file URL: " + url + " localFile path " + localFilePath); JerseyClientResponse response = jerseyClientHelperForOrgLoaders.executeGetRequest(url, null, null, false, Map.of(), Map.of("User-Agent", userAgent), InputStream.class, String.class); - System.out.println("!!!!! Inside download file"); int status = response.getStatus(); - String statusStrs = response.toString(); - System.out.println("!!!!! download file: " + statusStrs); - LOGGER.error("!!!!!!!!!!!!!!!!!!!! download file: " + statusStrs); if (status != 200) { LOGGER.warn("Unable to fetch file {}: {}", new Object[] { url, status }); return false;