summaryrefslogtreecommitdiffstats
path: root/vespa-http-client
diff options
context:
space:
mode:
authorBjørn Christian Seime <bjorncs@oath.com>2018-02-20 10:30:49 +0100
committerBjørn Christian Seime <bjorncs@oath.com>2018-02-20 10:30:49 +0100
commit685302d4b19ae158ee44738bf983c4d68f68100b (patch)
treebe3cbefa61477f46eb16fdcde69c2017e526adba /vespa-http-client
parent9b29c142674d947bd042c68223602bfe8d7b8bb0 (diff)
Use string concat instead of logging format string
Diffstat (limited to 'vespa-http-client')
-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;
}