From bbac44fc52aeb7fb3e9b94bf2c5f1bb75826fd86 Mon Sep 17 00:00:00 2001 From: Grahame Grieve Date: Thu, 18 Nov 2021 08:09:43 +1100 Subject: [PATCH] reduce spurious logging --- .../hl7/fhir/dstu3/utils/client/network/RetryInterceptor.java | 4 ++-- .../hl7/fhir/r4/utils/client/network/RetryInterceptor.java | 4 ++-- .../hl7/fhir/r5/utils/client/network/RetryInterceptor.java | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/utils/client/network/RetryInterceptor.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/utils/client/network/RetryInterceptor.java index 70c40f0f0..fd0a25202 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/utils/client/network/RetryInterceptor.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/utils/client/network/RetryInterceptor.java @@ -34,8 +34,8 @@ public class RetryInterceptor implements Interceptor { try { // If we are retrying a failed request that failed due to a bad response from the server, we must close it first if (response != null) { - System.out.println("Previous " + chain.request().method() + " attempt returned HTTP<" + (response.code()) - + "> from url -> " + chain.request().url() + "."); +// System.out.println("Previous " + chain.request().method() + " attempt returned HTTP<" + (response.code()) +// + "> from url -> " + chain.request().url() + "."); response.close(); } // System.out.println(chain.request().method() + " attempt <" + (retryCounter + 1) + "> to url -> " + chain.request().url()); diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/utils/client/network/RetryInterceptor.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/utils/client/network/RetryInterceptor.java index dd0ec0def..b76026466 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/utils/client/network/RetryInterceptor.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/utils/client/network/RetryInterceptor.java @@ -34,8 +34,8 @@ public class RetryInterceptor implements Interceptor { try { // If we are retrying a failed request that failed due to a bad response from the server, we must close it first if (response != null) { - System.out.println("Previous " + chain.request().method() + " attempt returned HTTP<" + (response.code()) - + "> from url -> " + chain.request().url() + "."); +// System.out.println("Previous " + chain.request().method() + " attempt returned HTTP<" + (response.code()) +// + "> from url -> " + chain.request().url() + "."); response.close(); } // System.out.println(chain.request().method() + " attempt <" + (retryCounter + 1) + "> to url -> " + chain.request().url()); diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/utils/client/network/RetryInterceptor.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/utils/client/network/RetryInterceptor.java index 604478366..d6f4e2de1 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/utils/client/network/RetryInterceptor.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/utils/client/network/RetryInterceptor.java @@ -35,8 +35,8 @@ public class RetryInterceptor implements Interceptor { try { // If we are retrying a failed request that failed due to a bad response from the server, we must close it first if (response != null) { - System.out.println("Previous " + chain.request().method() + " attempt returned HTTP<" + (response.code()) - + "> from url -> " + chain.request().url() + "."); +// System.out.println("Previous " + chain.request().method() + " attempt returned HTTP<" + (response.code()) +// + "> from url -> " + chain.request().url() + "."); response.close(); } // System.out.println(chain.request().method() + " attempt <" + (retryCounter + 1) + "> to url -> " + chain.request().url());