Skip to content

Commit

Permalink
Updated logging
Browse files Browse the repository at this point in the history
  • Loading branch information
bhatti committed Nov 5, 2018
1 parent 0cd5dfc commit ccf6934
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Binary file modified dist/auto-circleci-plugin-1.0.4.jar
Binary file not shown.
10 changes: 5 additions & 5 deletions src/main/java/com/nowsecure/auto/gateway/NSAutoGateway.java
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ UploadRequest uploadBinary() throws IOException, ParseException {
helper.save(path, json); //
artifacts.add(path);
UploadRequest request = UploadRequest.fromJson(json);
logger.info("uploaded binary with digest " + request.getBinary() + " and saved output to " + path);
logger.info("uploaded binary with digest " + request.getBinary() + " and saved output to " + path.getName());
return request;
}

Expand All @@ -95,7 +95,7 @@ UploadRequest preflight(UploadRequest request) throws IOException, ParseExceptio
params.getArtifactsDir().getCanonicalPath() + NOWSECURE_AUTO_SECURITY_TEST_PREFLIGHT_JSON);
helper.save(path, json); //
artifacts.add(path);
logger.info("saved preflight results to " + path);
logger.info("saved preflight results to " + path.getName());
if (json.contains("error")) {
throw new IOException("Preflight failed");
}
Expand All @@ -117,7 +117,7 @@ AssessmentRequest triggerAssessment(UploadRequest uploadRequest) throws IOExcept

AssessmentRequest request = AssessmentRequest.fromJson(json);
logger.info("triggered security test for digest " + uploadRequest.getBinary() + " to " + url
+ " and saved output to " + path);
+ " and saved output to " + path.getName());
return request;
}

Expand All @@ -130,7 +130,7 @@ ReportInfo[] getReportInfos(AssessmentRequest uploadInfo) throws IOException, Pa
if (reportInfos.length > 0) {
helper.save(path, reportJson);
artifacts.add(path);
logger.info("saved test report from " + resultsUrl + " to " + path);
logger.info("saved test report from " + resultsUrl + " to " + path.getName());
}
return reportInfos;
}
Expand All @@ -144,7 +144,7 @@ ScoreInfo getScoreInfo(AssessmentRequest uploadInfo) throws ParseException, IOEx
}
helper.save(path, scoreJson);
artifacts.add(path);
logger.info("saved score report from " + scoreUrl + " to " + path);
logger.info("saved score report from " + scoreUrl + " to " + path.getName());
return ScoreInfo.fromJson(scoreJson);
}

Expand Down

0 comments on commit ccf6934

Please sign in to comment.