Skip to content

Commit

Permalink
removed debugging code
Browse files Browse the repository at this point in the history
  • Loading branch information
Camelia-Orcid committed Oct 27, 2023
1 parent ec68220 commit cb45d87
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@ public class OrgDataClient {
*/
public <T> T get(String url, String userAgent, Class<T> type) {
JerseyClientResponse<T, String> 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;
Expand All @@ -49,13 +47,8 @@ public <T> T get(String url, String userAgent, Class<T> 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<InputStream, String> 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;
Expand Down

0 comments on commit cb45d87

Please sign in to comment.