summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--vespa-http-client/src/main/java/com/yahoo/vespa/http/client/core/communication/IOThread.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/vespa-http-client/src/main/java/com/yahoo/vespa/http/client/core/communication/IOThread.java b/vespa-http-client/src/main/java/com/yahoo/vespa/http/client/core/communication/IOThread.java
index ee83803e9eb..bff9d2186e6 100644
--- a/vespa-http-client/src/main/java/com/yahoo/vespa/http/client/core/communication/IOThread.java
+++ b/vespa-http-client/src/main/java/com/yahoo/vespa/http/client/core/communication/IOThread.java
@@ -319,12 +319,12 @@ class IOThread implements Runnable, AutoCloseable {
successfullHandshakes.getAndIncrement();
} catch (ServerResponseException ser) {
executeProblemsCounter.incrementAndGet();
- log.log(Level.INFO, "Handshake did not work out {0}: {1}", new Object[] {endpoint, Exceptions.toMessageString(ser)});
+ log.info("Handshake did not work out " + endpoint + ": " + Exceptions.toMessageString(ser));
drainFirstDocumentsInQueueIfOld();
return ThreadState.CONNECTED;
} catch (Throwable throwable) { // This cover IOException as well
executeProblemsCounter.incrementAndGet();
- log.log(Level.INFO, "Problem with Handshake {0}: {1}", new Object[] {endpoint, Exceptions.toMessageString(throwable)});
+ log.info("Problem with Handshake " + endpoint + ": " + Exceptions.toMessageString(throwable));
drainFirstDocumentsInQueueIfOld();
client.close();
return ThreadState.DISCONNECTED;
@@ -336,11 +336,11 @@ class IOThread implements Runnable, AutoCloseable {
gatewayThrottler.handleCall(processResponse.transitiveErrorCount);
}
catch (ServerResponseException ser) {
- log.log(Level.INFO, "Problems while handing data over to gateway {0}: {1}", new Object[] {endpoint, Exceptions.toMessageString(ser)});
+ log.info("Problems while handing data over to gateway " + endpoint + ": " + Exceptions.toMessageString(ser));
return ThreadState.CONNECTED;
}
catch (Throwable e) { // Covers IOException as well
- log.log(Level.INFO, "Problems while handing data over to gateway {0}: {1}", new Object[] {endpoint, Exceptions.toMessageString(e)});
+ log.info("Problems while handing data over to gateway " + endpoint + ": " + Exceptions.toMessageString(e));
client.close();
return ThreadState.DISCONNECTED;
}