reduce spurious logging

This commit is contained in:
Grahame Grieve 2021-11-18 08:09:43 +11:00
parent 5967d75fa2
commit bbac44fc52
3 changed files with 6 additions and 6 deletions

View File

@ -34,8 +34,8 @@ public class RetryInterceptor implements Interceptor {
try { try {
// If we are retrying a failed request that failed due to a bad response from the server, we must close it first // 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) { if (response != null) {
System.out.println("Previous " + chain.request().method() + " attempt returned HTTP<" + (response.code()) // System.out.println("Previous " + chain.request().method() + " attempt returned HTTP<" + (response.code())
+ "> from url -> " + chain.request().url() + "."); // + "> from url -> " + chain.request().url() + ".");
response.close(); response.close();
} }
// System.out.println(chain.request().method() + " attempt <" + (retryCounter + 1) + "> to url -> " + chain.request().url()); // System.out.println(chain.request().method() + " attempt <" + (retryCounter + 1) + "> to url -> " + chain.request().url());

View File

@ -34,8 +34,8 @@ public class RetryInterceptor implements Interceptor {
try { try {
// If we are retrying a failed request that failed due to a bad response from the server, we must close it first // 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) { if (response != null) {
System.out.println("Previous " + chain.request().method() + " attempt returned HTTP<" + (response.code()) // System.out.println("Previous " + chain.request().method() + " attempt returned HTTP<" + (response.code())
+ "> from url -> " + chain.request().url() + "."); // + "> from url -> " + chain.request().url() + ".");
response.close(); response.close();
} }
// System.out.println(chain.request().method() + " attempt <" + (retryCounter + 1) + "> to url -> " + chain.request().url()); // System.out.println(chain.request().method() + " attempt <" + (retryCounter + 1) + "> to url -> " + chain.request().url());

View File

@ -35,8 +35,8 @@ public class RetryInterceptor implements Interceptor {
try { try {
// If we are retrying a failed request that failed due to a bad response from the server, we must close it first // 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) { if (response != null) {
System.out.println("Previous " + chain.request().method() + " attempt returned HTTP<" + (response.code()) // System.out.println("Previous " + chain.request().method() + " attempt returned HTTP<" + (response.code())
+ "> from url -> " + chain.request().url() + "."); // + "> from url -> " + chain.request().url() + ".");
response.close(); response.close();
} }
// System.out.println(chain.request().method() + " attempt <" + (retryCounter + 1) + "> to url -> " + chain.request().url()); // System.out.println(chain.request().method() + " attempt <" + (retryCounter + 1) + "> to url -> " + chain.request().url());