Skip to content

Commit

Permalink
Correcting download log level
Browse files Browse the repository at this point in the history
  • Loading branch information
jmwhorton committed Aug 20, 2024
1 parent 612268b commit 6f6ca81
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public Response constructResponse(@QueryParam("SeriesInstanceUID") String series
@QueryParam("MD5Verification") String md5Verify) throws IOException {
// Timestamp btimestamp = new Timestamp(System.currentTimeMillis());
// System.out.println("Begining of zip streaming API call--" + sdf.format(btimestamp));
downloadLogger.log(Level.forName("DOWNLOADLOG", 350),"TEST API log called.");
downloadLogger.info("TEST API log called.");
System.out.println("!!!!!log test");
final String sid = seriesInstanceUid;
String userName = NCIAConfig.getGuestUsername();
Expand Down Expand Up @@ -187,7 +187,7 @@ public void write(OutputStream output) throws IOException, WebApplicationExcepti
if (in != null)
in.close();
}
downloadLogger.log(Level.forName("DOWNLOADLOG", 350),
downloadLogger.info(
"collection="+collectionName + "," +
"seriesUID="+ seriesInstanceUid + "," +
"numberOfFiles=" + numberOfFiles + "," +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ public void write(OutputStream output) throws IOException, WebApplicationExcepti
in.close();
}
recodeDownload(seriesInstanceUid, size, "v1API", userName);
downloadLogger.log(Level.forName("DOWNLOADLOG", 350),
downloadLogger.info(
"collection="+collectionName + "," +
"seriesUID="+ seriesInstanceUid + "," +
"numberOfFiles=" + numberOfFiles + "," +
Expand Down Expand Up @@ -207,7 +207,7 @@ public void write(OutputStream output) throws IOException, WebApplicationExcepti
in.close();
}
recodeDownload(seriesInstanceUid, size, "v1API", userName);
downloadLogger.log(Level.forName("DOWNLOADLOG", 350),
downloadLogger.info(
"collection="+collectionName + "," +
"seriesUID="+ seriesInstanceUid + "," +
"numberOfFiles=" + numberOfFiles + "," +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ public void write(OutputStream output) throws IOException, WebApplicationExcepti
in.close();
}
recodeDownload(seriesInstanceUid, size, "v1API", userName);
downloadLogger.log(Level.forName("DOWNLOADLOG", 350),
downloadLogger.info(
"collection="+collectionName + "," +
"seriesUID="+ seriesInstanceUid + "," +
"numberOfFiles=" + numberOfFiles + "," +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public Response constructResponse(@QueryParam("SeriesInstanceUID") String series
int size = wdto.getImage().length;
String collectionName = wdto.getCollection();

downloadLogger.log(Level.forName("DOWNLOADLOG", 350),
downloadLogger.info(
"collection="+collectionName + "," +
"seriesUID="+ seriesInstanceUid + "," +
"numberOfFiles=1" + "," +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ public void write(OutputStream output) throws IOException, WebApplicationExcepti
}

recodeDownload(seriesInstanceUid, size, "CLI/v2API", userName);
downloadLogger.log(Level.forName("DOWNLOADLOG", 350),
downloadLogger.info(
"collection="+collectionName + "," +
"seriesUID="+ seriesInstanceUid + "," +
"numberOfFiles=" + numberOfFiles + "," +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public void write(OutputStream output) throws IOException, WebApplicationExcepti
in.close();
if (size > 0) {
recodeDownload(seriesInstanceUid, size, "v2API", userName);
downloadLogger.log(Level.forName("DOWNLOADLOG", 350),
downloadLogger.info(
"collection="+collectionName + "," +
"seriesUID="+ seriesInstanceUid + "," +
"numberOfFiles=" + numberOfFiles + "," +
Expand Down Expand Up @@ -205,7 +205,7 @@ public void write(OutputStream output) throws IOException, WebApplicationExcepti
if (size > 0) {
recodeDownload(seriesInstanceUid, size, "v2API", userName);
System.out.println("size=" + size +"; recording");
downloadLogger.log(Level.forName("DOWNLOADLOG", 350),
downloadLogger.info(
"collection="+collectionName + "," +
"seriesUID="+ seriesInstanceUid + "," +
"numberOfFiles=" + numberOfFiles + "," +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ public void write(OutputStream output) throws IOException, WebApplicationExcepti
in.close();
}
recodeDownload(seriesInstanceUid, size, "v2API", userName);
downloadLogger.log(Level.forName("DOWNLOADLOG", 350),
downloadLogger.info(
"collection="+collectionName + "," +
"seriesUID="+ seriesInstanceUid + "," +
"numberOfFiles=" + numberOfFiles + "," +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public Response constructResponse(@QueryParam("SeriesInstanceUID") String series

int size = wdto.getImage().length;
recodeDownload(seriesInstanceUid, size, "v2API", user);
downloadLogger.log(Level.forName("DOWNLOADLOG", 350),
downloadLogger.info(
"collection="+collectionName + "," +
"seriesUID="+ seriesInstanceUid + "," +
"numberOfFiles=1" + "," +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public void doGet(HttpServletRequest request, HttpServletResponse response) thro
// This servlet processes Manifest download related requests only. JNLP
// download related requests are processed at DownloadServlet
// logger.info("TEST!!!!!t doGet() method called.");
// downloadLogger.log(Level.forName("DOWNLOADLOG", 350),"TEST!!!!!2 doGet() method called.");
// downloadLogger.info("TEST!!!!!2 doGet() method called.");
// System.out.println("!!!!!log test");
// response.getWriter().append("!!!test11 test for logging.");

Expand Down Expand Up @@ -225,7 +225,7 @@ protected void processRequest(HttpServletResponse response, String seriesUid, St
long size = computeContentLength(imageResults, annoResults);
try {
processor.recordAppDownload(seriesUid, userId, size, "v4");
downloadLogger.log(DOWNLOADLOG,
downloadLogger.info(
"collection="+imageResults.get(0).getProject() + "," +
"seriesUID="+ seriesUid + "," +
"numberOfFiles=" + imageResults.size() + "," +
Expand Down

0 comments on commit 6f6ca81

Please sign in to comment.