Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 2332ba6

Browse files
committedJan 31, 2025·
Cleanup debugging
1 parent 6a6c345 commit 2332ba6

File tree

1 file changed

+0
-10
lines changed
  • pic-sure-resources/pic-sure-resource-api/src/main/java/edu/harvard/dbmi/avillach/service

1 file changed

+0
-10
lines changed
 

‎pic-sure-resources/pic-sure-resource-api/src/main/java/edu/harvard/dbmi/avillach/service/ResourceWebClient.java

-10
Original file line numberDiff line numberDiff line change
@@ -241,12 +241,6 @@ public Response queryResult(String rsURL, String queryId, QueryRequest queryRequ
241241
);
242242

243243
byte[] content = httpClientUtil.readBytesFromResponse(resourcesResponse);
244-
FileOutputStream fos = new FileOutputStream("/tmp/test.avro");
245-
fos.write(content);
246-
247-
String contentString = new String(content, StandardCharsets.ISO_8859_1);
248-
logger.info("Query result:");
249-
logger.info(contentString);
250244
if (resourcesResponse.getStatusLine().getStatusCode() != 200) {
251245
logger.error("ResourceRS did not return a 200");
252246
HttpClientUtil.throwResponseError(resourcesResponse, rsURL);
@@ -255,10 +249,6 @@ public Response queryResult(String rsURL, String queryId, QueryRequest queryRequ
255249
} catch (JsonProcessingException e) {
256250
logger.error("Unable to encode resource credentials");
257251
throw new NotAuthorizedException("Unable to encode resource credentials", e);
258-
} catch (FileNotFoundException e) {
259-
throw new RuntimeException(e);
260-
} catch (IOException e) {
261-
throw new RuntimeException(e);
262252
} finally {
263253
closeHttpResponse(resourcesResponse);
264254
}

0 commit comments

Comments
 (0)
Please sign in to comment.