X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=datafilecollector%2Fsrc%2Fmain%2Fjava%2Forg%2Foran%2Fdatafile%2Fhttp%2FDfcHttpsClient.java;h=f79082de79e755a0f6286bbb4ca2e8c118594cd5;hb=5a2b5a8c4af4e390224db81fa546c780b7ab265c;hp=5cd0a3185576194988c32b833c74c5d70dce042e;hpb=7e81fc8f80de769772fd41d762706f66519f13e2;p=nonrtric%2Fplt%2Franpm.git diff --git a/datafilecollector/src/main/java/org/oran/datafile/http/DfcHttpsClient.java b/datafilecollector/src/main/java/org/oran/datafile/http/DfcHttpsClient.java index 5cd0a31..f79082d 100644 --- a/datafilecollector/src/main/java/org/oran/datafile/http/DfcHttpsClient.java +++ b/datafilecollector/src/main/java/org/oran/datafile/http/DfcHttpsClient.java @@ -82,6 +82,7 @@ public class DfcHttpsClient implements FileCollectClient { } @Override + @SuppressWarnings("java:S2139") public void collectFile(String remoteFile, Path localFile) throws DatafileTaskException { logger.trace("Prepare to collectFile {}", localFile); HttpGet httpGet = new HttpGet(HttpUtils.prepareHttpsUri(fileServerData, remoteFile)); @@ -97,12 +98,13 @@ public class DfcHttpsClient implements FileCollectClient { HttpResponse httpResponse = makeCall(httpGet); processResponse(httpResponse, localFile); } catch (IOException e) { - logger.error("marker", e); + logger.error("Error downloading file from server. Details: {}", e.getMessage()); throw new DatafileTaskException("Error downloading file from server. ", e); } logger.trace("HTTPS collectFile OK"); } + @SuppressWarnings("java:S2139") HttpResponse makeCall(HttpGet httpGet) throws IOException, DatafileTaskException { try { HttpResponse httpResponse = executeHttpClient(httpGet);