diff --git a/src/main/java/com/redhat/exhort/impl/ExhortApi.java b/src/main/java/com/redhat/exhort/impl/ExhortApi.java index 1e3010d5..25f3012c 100644 --- a/src/main/java/com/redhat/exhort/impl/ExhortApi.java +++ b/src/main/java/com/redhat/exhort/impl/ExhortApi.java @@ -88,7 +88,7 @@ public String getEndpoint() { public static final void main(String[] args) throws IOException, InterruptedException, ExecutionException { System.setProperty("EXHORT_DEV_MODE", "true"); AnalysisReport analysisReport = new ExhortApi() - .stackAnalysisMixed("/tmp/030324/requirements.txt").get().json; + .stackAnalysisMixed("/tmp/exhort_test_10582748308498949664/pom.xml").get().json; // ObjectMapper om = new ObjectMapper().configure(SerializationFeature.WRITE_EMPTY_JSON_ARRAYS, false); // System.out.println(om.writerWithDefaultPrettyPrinter().writeValueAsString(analysisReport)); // AnalysisReport analysisReport = new ExhortApi() @@ -184,7 +184,9 @@ static HttpClient.Version getHttpVersion() { private String commonHookBeginning(boolean startOfApi) { if(startOfApi) { generateClientRequestId(); - LOG.info("Start of exhort-java-api client"); + if (debugLoggingIsNeeded()) { + LOG.info("Start of exhort-java-api client"); + } } else { if(Objects.isNull(getClientRequestId())) {