diff --git a/jetty-client/src/main/java/org/eclipse/jetty/client/LeakTrackingConnectionPool.java b/jetty-client/src/main/java/org/eclipse/jetty/client/LeakTrackingConnectionPool.java index 4c1c3ef314b1..5ef4e22428e2 100644 --- a/jetty-client/src/main/java/org/eclipse/jetty/client/LeakTrackingConnectionPool.java +++ b/jetty-client/src/main/java/org/eclipse/jetty/client/LeakTrackingConnectionPool.java @@ -90,6 +90,6 @@ protected void released(Connection connection) protected void leaked(LeakDetector.LeakInfo leakInfo) { - LOG.info("Connection " + leakInfo.getResourceDescription() + " leaked at:", leakInfo.getStackFrames()); + LOG.info("Connection {} leaked at:", leakInfo.getResourceDescription(), leakInfo.getStackFrames()); } } diff --git a/jetty-client/src/main/java/org/eclipse/jetty/client/RequestNotifier.java b/jetty-client/src/main/java/org/eclipse/jetty/client/RequestNotifier.java index 805ca6b5b395..3bfe89e92a75 100644 --- a/jetty-client/src/main/java/org/eclipse/jetty/client/RequestNotifier.java +++ b/jetty-client/src/main/java/org/eclipse/jetty/client/RequestNotifier.java @@ -62,7 +62,7 @@ private void notifyQueued(Request.QueuedListener listener, Request request) } catch (Throwable x) { - LOG.info("Exception while notifying listener " + listener, x); + LOG.info("Exception while notifying listener {}", listener, x); } } @@ -92,7 +92,7 @@ private void notifyBegin(Request.BeginListener listener, Request request) } catch (Throwable x) { - LOG.info("Exception while notifying listener " + listener, x); + LOG.info("Exception while notifying listener {}", listener, x); } } @@ -122,7 +122,7 @@ private void notifyHeaders(Request.HeadersListener listener, Request request) } catch (Throwable x) { - LOG.info("Exception while notifying listener " + listener, x); + LOG.info("Exception while notifying listener {}", listener, x); } } @@ -152,7 +152,7 @@ private void notifyCommit(Request.CommitListener listener, Request request) } catch (Throwable x) { - LOG.info("Exception while notifying listener " + listener, x); + LOG.info("Exception while notifying listener {}", listener, x); } } @@ -194,7 +194,7 @@ private void notifyContent(Request.ContentListener listener, Request request, By } catch (Throwable x) { - LOG.info("Exception while notifying listener " + listener, x); + LOG.info("Exception while notifying listener {}", listener, x); } } @@ -224,7 +224,7 @@ private void notifySuccess(Request.SuccessListener listener, Request request) } catch (Throwable x) { - LOG.info("Exception while notifying listener " + listener, x); + LOG.info("Exception while notifying listener {}", listener, x); } } @@ -254,7 +254,7 @@ private void notifyFailure(Request.FailureListener listener, Request request, Th } catch (Throwable x) { - LOG.info("Exception while notifying listener " + listener, x); + LOG.info("Exception while notifying listener {}", listener, x); } } } diff --git a/jetty-client/src/main/java/org/eclipse/jetty/client/ResponseNotifier.java b/jetty-client/src/main/java/org/eclipse/jetty/client/ResponseNotifier.java index 1d3f959f10d1..bd3c78c21476 100644 --- a/jetty-client/src/main/java/org/eclipse/jetty/client/ResponseNotifier.java +++ b/jetty-client/src/main/java/org/eclipse/jetty/client/ResponseNotifier.java @@ -56,7 +56,7 @@ private void notifyBegin(Response.BeginListener listener, Response response) } catch (Throwable x) { - LOG.info("Exception while notifying listener " + listener, x); + LOG.info("Exception while notifying listener {}", listener, x); } } @@ -79,7 +79,7 @@ private boolean notifyHeader(Response.HeaderListener listener, Response response } catch (Throwable x) { - LOG.info("Exception while notifying listener " + listener, x); + LOG.info("Exception while notifying listener {}", listener, x); return false; } } @@ -101,7 +101,7 @@ private void notifyHeaders(Response.HeadersListener listener, Response response) } catch (Throwable x) { - LOG.info("Exception while notifying listener " + listener, x); + LOG.info("Exception while notifying listener {}", listener, x); } } @@ -121,7 +121,7 @@ private void notifyBeforeContent(Response.DemandedContentListener listener, Resp } catch (Throwable x) { - LOG.info("Exception while notifying listener " + listener, x); + LOG.info("Exception while notifying listener {}", listener, x); } } @@ -156,7 +156,7 @@ private void notifyContent(Response.DemandedContentListener listener, Response r } catch (Throwable x) { - LOG.info("Exception while notifying listener " + listener, x); + LOG.info("Exception while notifying listener {}", listener, x); } } @@ -177,7 +177,7 @@ private void notifySuccess(Response.SuccessListener listener, Response response) } catch (Throwable x) { - LOG.info("Exception while notifying listener " + listener, x); + LOG.info("Exception while notifying listener {}", listener, x); } } @@ -198,7 +198,7 @@ private void notifyFailure(Response.FailureListener listener, Response response, } catch (Throwable x) { - LOG.info("Exception while notifying listener " + listener, x); + LOG.info("Exception while notifying listener {}", listener, x); } } @@ -219,7 +219,7 @@ private void notifyComplete(Response.CompleteListener listener, Result result) } catch (Throwable x) { - LOG.info("Exception while notifying listener " + listener, x); + LOG.info("Exception while notifying listener {}", listener, x); } } diff --git a/jetty-http2/http2-client/src/main/java/org/eclipse/jetty/http2/client/HTTP2ClientSession.java b/jetty-http2/http2-client/src/main/java/org/eclipse/jetty/http2/client/HTTP2ClientSession.java index e8a2b9197d45..d708fca63fbb 100644 --- a/jetty-http2/http2-client/src/main/java/org/eclipse/jetty/http2/client/HTTP2ClientSession.java +++ b/jetty-http2/http2-client/src/main/java/org/eclipse/jetty/http2/client/HTTP2ClientSession.java @@ -154,7 +154,7 @@ private Stream.Listener notifyPush(IStream stream, IStream pushStream, PushPromi } catch (Throwable x) { - LOG.info("Failure while notifying listener " + listener, x); + LOG.info("Failure while notifying listener {}", listener, x); return null; } } diff --git a/jetty-http2/http2-common/src/main/java/org/eclipse/jetty/http2/HTTP2Session.java b/jetty-http2/http2-common/src/main/java/org/eclipse/jetty/http2/HTTP2Session.java index 9169fd2cb0bb..4c065da0e048 100644 --- a/jetty-http2/http2-common/src/main/java/org/eclipse/jetty/http2/HTTP2Session.java +++ b/jetty-http2/http2-common/src/main/java/org/eclipse/jetty/http2/HTTP2Session.java @@ -1165,7 +1165,7 @@ protected Stream.Listener notifyNewStream(Stream stream, HeadersFrame frame) } catch (Throwable x) { - LOG.info("Failure while notifying listener " + listener, x); + LOG.info("Failure while notifying listener {}", listener, x); return null; } } @@ -1178,7 +1178,7 @@ protected void notifySettings(Session session, SettingsFrame frame) } catch (Throwable x) { - LOG.info("Failure while notifying listener " + listener, x); + LOG.info("Failure while notifying listener {}", listener, x); } } @@ -1190,7 +1190,7 @@ protected void notifyPing(Session session, PingFrame frame) } catch (Throwable x) { - LOG.info("Failure while notifying listener " + listener, x); + LOG.info("Failure while notifying listener {}", listener, x); } } @@ -1202,7 +1202,7 @@ protected void notifyReset(Session session, ResetFrame frame) } catch (Throwable x) { - LOG.info("Failure while notifying listener " + listener, x); + LOG.info("Failure while notifying listener {}", listener, x); } } @@ -1214,7 +1214,7 @@ protected void notifyClose(Session session, GoAwayFrame frame, Callback callback } catch (Throwable x) { - LOG.info("Failure while notifying listener " + listener, x); + LOG.info("Failure while notifying listener {}", listener, x); } } @@ -1226,7 +1226,7 @@ protected boolean notifyIdleTimeout(Session session) } catch (Throwable x) { - LOG.info("Failure while notifying listener " + listener, x); + LOG.info("Failure while notifying listener {}", listener, x); return true; } } @@ -1239,7 +1239,7 @@ protected void notifyFailure(Session session, Throwable failure, Callback callba } catch (Throwable x) { - LOG.info("Failure while notifying listener " + listener, x); + LOG.info("Failure while notifying listener {}", listener, x); } } @@ -1254,7 +1254,7 @@ protected void notifyHeaders(IStream stream, HeadersFrame frame) } catch (Throwable x) { - LOG.info("Failure while notifying listener " + listener, x); + LOG.info("Failure while notifying listener {}", listener, x); } } diff --git a/jetty-http2/http2-common/src/main/java/org/eclipse/jetty/http2/HTTP2Stream.java b/jetty-http2/http2-common/src/main/java/org/eclipse/jetty/http2/HTTP2Stream.java index d31d716d66ef..b25b3cfdc4bc 100644 --- a/jetty-http2/http2-common/src/main/java/org/eclipse/jetty/http2/HTTP2Stream.java +++ b/jetty-http2/http2-common/src/main/java/org/eclipse/jetty/http2/HTTP2Stream.java @@ -708,7 +708,7 @@ private void notifyNewStream(Stream stream) } catch (Throwable x) { - LOG.info("Failure while notifying listener " + listener, x); + LOG.info("Failure while notifying listener {}", listener, x); } } } @@ -724,7 +724,7 @@ private void notifyBeforeData(Stream stream) } catch (Throwable x) { - LOG.info("Failure while notifying listener " + listener, x); + LOG.info("Failure while notifying listener {}", listener, x); } } else @@ -744,7 +744,7 @@ private void notifyDataDemanded(Stream stream, DataFrame frame, Callback callbac } catch (Throwable x) { - LOG.info("Failure while notifying listener " + listener, x); + LOG.info("Failure while notifying listener {}", listener, x); callback.failed(x); } } @@ -766,7 +766,7 @@ private void notifyReset(Stream stream, ResetFrame frame, Callback callback) } catch (Throwable x) { - LOG.info("Failure while notifying listener " + listener, x); + LOG.info("Failure while notifying listener {}", listener, x); callback.failed(x); } } @@ -787,7 +787,7 @@ private boolean notifyIdleTimeout(Stream stream, Throwable failure) } catch (Throwable x) { - LOG.info("Failure while notifying listener " + listener, x); + LOG.info("Failure while notifying listener {}", listener, x); return true; } } @@ -803,7 +803,7 @@ private void notifyFailure(Stream stream, FailureFrame frame, Callback callback) } catch (Throwable x) { - LOG.info("Failure while notifying listener " + listener, x); + LOG.info("Failure while notifying listener {}", listener, x); callback.failed(x); } } @@ -824,7 +824,7 @@ private void notifyClosed(Stream stream) } catch (Throwable x) { - LOG.info("Failure while notifying listener " + listener, x); + LOG.info("Failure while notifying listener {}", listener, x); } } diff --git a/jetty-http2/http2-common/src/main/java/org/eclipse/jetty/http2/parser/BodyParser.java b/jetty-http2/http2-common/src/main/java/org/eclipse/jetty/http2/parser/BodyParser.java index 2c06fd20e90e..7b3b41d59640 100644 --- a/jetty-http2/http2-common/src/main/java/org/eclipse/jetty/http2/parser/BodyParser.java +++ b/jetty-http2/http2-common/src/main/java/org/eclipse/jetty/http2/parser/BodyParser.java @@ -109,7 +109,7 @@ protected void notifyData(DataFrame frame) } catch (Throwable x) { - LOG.info("Failure while notifying listener " + listener, x); + LOG.info("Failure while notifying listener {}", listener, x); } } @@ -121,7 +121,7 @@ protected void notifyHeaders(HeadersFrame frame) } catch (Throwable x) { - LOG.info("Failure while notifying listener " + listener, x); + LOG.info("Failure while notifying listener {}", listener, x); } } @@ -133,7 +133,7 @@ protected void notifyPriority(PriorityFrame frame) } catch (Throwable x) { - LOG.info("Failure while notifying listener " + listener, x); + LOG.info("Failure while notifying listener {}", listener, x); } } @@ -145,7 +145,7 @@ protected void notifyReset(ResetFrame frame) } catch (Throwable x) { - LOG.info("Failure while notifying listener " + listener, x); + LOG.info("Failure while notifying listener {}", listener, x); } } @@ -157,7 +157,7 @@ protected void notifySettings(SettingsFrame frame) } catch (Throwable x) { - LOG.info("Failure while notifying listener " + listener, x); + LOG.info("Failure while notifying listener {}", listener, x); } } @@ -169,7 +169,7 @@ protected void notifyPushPromise(PushPromiseFrame frame) } catch (Throwable x) { - LOG.info("Failure while notifying listener " + listener, x); + LOG.info("Failure while notifying listener {}", listener, x); } } @@ -181,7 +181,7 @@ protected void notifyPing(PingFrame frame) } catch (Throwable x) { - LOG.info("Failure while notifying listener " + listener, x); + LOG.info("Failure while notifying listener {}", listener, x); } } @@ -193,7 +193,7 @@ protected void notifyGoAway(GoAwayFrame frame) } catch (Throwable x) { - LOG.info("Failure while notifying listener " + listener, x); + LOG.info("Failure while notifying listener {}", listener, x); } } @@ -205,7 +205,7 @@ protected void notifyWindowUpdate(WindowUpdateFrame frame) } catch (Throwable x) { - LOG.info("Failure while notifying listener " + listener, x); + LOG.info("Failure while notifying listener {}", listener, x); } } @@ -224,7 +224,7 @@ private void notifyConnectionFailure(int error, String reason) } catch (Throwable x) { - LOG.info("Failure while notifying listener " + listener, x); + LOG.info("Failure while notifying listener {}", listener, x); } } @@ -242,7 +242,7 @@ private void notifyStreamFailure(int streamId, int error, String reason) } catch (Throwable x) { - LOG.info("Failure while notifying listener " + listener, x); + LOG.info("Failure while notifying listener {}", listener, x); } } diff --git a/jetty-http2/http2-common/src/main/java/org/eclipse/jetty/http2/parser/Parser.java b/jetty-http2/http2-common/src/main/java/org/eclipse/jetty/http2/parser/Parser.java index a04c81c42b71..371dfb3c6df5 100644 --- a/jetty-http2/http2-common/src/main/java/org/eclipse/jetty/http2/parser/Parser.java +++ b/jetty-http2/http2-common/src/main/java/org/eclipse/jetty/http2/parser/Parser.java @@ -247,7 +247,7 @@ protected void notifyConnectionFailure(int error, String reason) } catch (Throwable x) { - LOG.info("Failure while notifying listener " + listener, x); + LOG.info("Failure while notifying listener {}", listener, x); } } diff --git a/jetty-http2/http2-common/src/main/java/org/eclipse/jetty/http2/parser/PrefaceParser.java b/jetty-http2/http2-common/src/main/java/org/eclipse/jetty/http2/parser/PrefaceParser.java index 0dc6a052d3d0..ea38a7fb1c72 100644 --- a/jetty-http2/http2-common/src/main/java/org/eclipse/jetty/http2/parser/PrefaceParser.java +++ b/jetty-http2/http2-common/src/main/java/org/eclipse/jetty/http2/parser/PrefaceParser.java @@ -82,7 +82,7 @@ protected void notifyConnectionFailure(int error, String reason) } catch (Throwable x) { - LOG.info("Failure while notifying listener " + listener, x); + LOG.info("Failure while notifying listener {}", listener, x); } } } diff --git a/jetty-http2/http2-common/src/main/java/org/eclipse/jetty/http2/parser/ServerParser.java b/jetty-http2/http2-common/src/main/java/org/eclipse/jetty/http2/parser/ServerParser.java index 21aaf5aa6cde..a18835c98fe3 100644 --- a/jetty-http2/http2-common/src/main/java/org/eclipse/jetty/http2/parser/ServerParser.java +++ b/jetty-http2/http2-common/src/main/java/org/eclipse/jetty/http2/parser/ServerParser.java @@ -143,7 +143,7 @@ private void notifyPreface() } catch (Throwable x) { - LOG.info("Failure while notifying listener " + listener, x); + LOG.info("Failure while notifying listener {}", listener, x); } } diff --git a/jetty-http2/http2-server/src/main/java/org/eclipse/jetty/http2/server/HTTP2ServerConnection.java b/jetty-http2/http2-server/src/main/java/org/eclipse/jetty/http2/server/HTTP2ServerConnection.java index 9bcf82d4bd0c..d5a6d24ab380 100644 --- a/jetty-http2/http2-server/src/main/java/org/eclipse/jetty/http2/server/HTTP2ServerConnection.java +++ b/jetty-http2/http2-server/src/main/java/org/eclipse/jetty/http2/server/HTTP2ServerConnection.java @@ -151,7 +151,7 @@ private void notifyAccept(ISession session) } catch (Throwable x) { - LOG.info("Failure while notifying listener " + listener, x); + LOG.info("Failure while notifying listener {}", listener, x); } } diff --git a/jetty-http2/http2-server/src/main/java/org/eclipse/jetty/http2/server/HTTP2ServerSession.java b/jetty-http2/http2-server/src/main/java/org/eclipse/jetty/http2/server/HTTP2ServerSession.java index 3f91042fd305..2385500dc71f 100644 --- a/jetty-http2/http2-server/src/main/java/org/eclipse/jetty/http2/server/HTTP2ServerSession.java +++ b/jetty-http2/http2-server/src/main/java/org/eclipse/jetty/http2/server/HTTP2ServerSession.java @@ -172,7 +172,7 @@ private Map notifyPreface(Session session) } catch (Throwable x) { - LOG.info("Failure while notifying listener " + listener, x); + LOG.info("Failure while notifying listener {}", listener, x); return null; } } diff --git a/jetty-io/src/main/java/org/eclipse/jetty/io/AbstractConnection.java b/jetty-io/src/main/java/org/eclipse/jetty/io/AbstractConnection.java index bc07b02f145b..f49cc8cfaff6 100644 --- a/jetty-io/src/main/java/org/eclipse/jetty/io/AbstractConnection.java +++ b/jetty-io/src/main/java/org/eclipse/jetty/io/AbstractConnection.java @@ -220,7 +220,7 @@ private void onOpened(Listener listener) } catch (Throwable x) { - LOG.info("Failure while notifying listener " + listener, x); + LOG.info("Failure while notifying listener {}", listener, x); } } diff --git a/jetty-io/src/main/java/org/eclipse/jetty/io/NetworkTrafficSocketChannelEndPoint.java b/jetty-io/src/main/java/org/eclipse/jetty/io/NetworkTrafficSocketChannelEndPoint.java index 272c0ecc0aca..97dd06bda8b5 100644 --- a/jetty-io/src/main/java/org/eclipse/jetty/io/NetworkTrafficSocketChannelEndPoint.java +++ b/jetty-io/src/main/java/org/eclipse/jetty/io/NetworkTrafficSocketChannelEndPoint.java @@ -84,7 +84,7 @@ public void onOpen() } catch (Throwable x) { - LOG.info("Exception while invoking listener " + listener, x); + LOG.info("Exception while invoking listener {}", listener, x); } } } @@ -101,7 +101,7 @@ public void onClose(Throwable failure) } catch (Throwable x) { - LOG.info("Exception while invoking listener " + listener, x); + LOG.info("Exception while invoking listener {}", listener, x); } } } @@ -117,7 +117,7 @@ public void notifyIncoming(ByteBuffer buffer, int read) } catch (Throwable x) { - LOG.info("Exception while invoking listener " + listener, x); + LOG.info("Exception while invoking listener {}", listener, x); } } } @@ -132,7 +132,7 @@ public void notifyOutgoing(ByteBuffer view) } catch (Throwable x) { - LOG.info("Exception while invoking listener " + listener, x); + LOG.info("Exception while invoking listener {}", listener, x); } } } diff --git a/jetty-io/src/main/java/org/eclipse/jetty/io/ssl/SslConnection.java b/jetty-io/src/main/java/org/eclipse/jetty/io/ssl/SslConnection.java index b0768c7fddb0..e38c55ba7ab5 100644 --- a/jetty-io/src/main/java/org/eclipse/jetty/io/ssl/SslConnection.java +++ b/jetty-io/src/main/java/org/eclipse/jetty/io/ssl/SslConnection.java @@ -1394,7 +1394,7 @@ private void notifyHandshakeSucceeded(SSLEngine sslEngine) throws SSLException } catch (Throwable x) { - LOG.info("Exception while notifying listener " + listener, x); + LOG.info("Exception while notifying listener {}", listener, x); } } } @@ -1412,7 +1412,7 @@ private void notifyHandshakeFailed(SSLEngine sslEngine, Throwable failure) } catch (Throwable x) { - LOG.info("Exception while notifying listener " + listener, x); + LOG.info("Exception while notifying listener {}", listener, x); } } } diff --git a/jetty-util/src/main/java/org/eclipse/jetty/util/thread/Sweeper.java b/jetty-util/src/main/java/org/eclipse/jetty/util/thread/Sweeper.java index 74fb5394ea1d..d825f95f3e08 100644 --- a/jetty-util/src/main/java/org/eclipse/jetty/util/thread/Sweeper.java +++ b/jetty-util/src/main/java/org/eclipse/jetty/util/thread/Sweeper.java @@ -143,7 +143,7 @@ public void run() } catch (Throwable x) { - LOG.info("Exception while sweeping " + sweepable, x); + LOG.info("Exception while sweeping {}", sweepable, x); } } activate(); diff --git a/jetty-websocket/websocket-javax-common/src/main/java/org/eclipse/jetty/websocket/javax/common/JavaxWebSocketContainer.java b/jetty-websocket/websocket-javax-common/src/main/java/org/eclipse/jetty/websocket/javax/common/JavaxWebSocketContainer.java index 57a7548e078e..8ae9a48b1b10 100644 --- a/jetty-websocket/websocket-javax-common/src/main/java/org/eclipse/jetty/websocket/javax/common/JavaxWebSocketContainer.java +++ b/jetty-websocket/websocket-javax-common/src/main/java/org/eclipse/jetty/websocket/javax/common/JavaxWebSocketContainer.java @@ -194,7 +194,7 @@ public void notifySessionListeners(Consumer consu } catch (Throwable x) { - LOG.info("Exception while invoking listener " + listener, x); + LOG.info("Exception while invoking listener {}", listener, x); } } } diff --git a/jetty-websocket/websocket-jetty-client/src/main/java/org/eclipse/jetty/websocket/client/WebSocketClient.java b/jetty-websocket/websocket-jetty-client/src/main/java/org/eclipse/jetty/websocket/client/WebSocketClient.java index 9abdbbed8af8..4d686a92eb14 100644 --- a/jetty-websocket/websocket-jetty-client/src/main/java/org/eclipse/jetty/websocket/client/WebSocketClient.java +++ b/jetty-websocket/websocket-jetty-client/src/main/java/org/eclipse/jetty/websocket/client/WebSocketClient.java @@ -212,7 +212,7 @@ public void notifySessionListeners(Consumer consumer) } catch (Throwable x) { - LOG.info("Exception while invoking listener " + listener, x); + LOG.info("Exception while invoking listener {}", listener, x); } } } diff --git a/jetty-websocket/websocket-jetty-server/src/main/java/org/eclipse/jetty/websocket/server/JettyWebSocketServerContainer.java b/jetty-websocket/websocket-jetty-server/src/main/java/org/eclipse/jetty/websocket/server/JettyWebSocketServerContainer.java index 9609ba815ccc..78128a7a4bca 100644 --- a/jetty-websocket/websocket-jetty-server/src/main/java/org/eclipse/jetty/websocket/server/JettyWebSocketServerContainer.java +++ b/jetty-websocket/websocket-jetty-server/src/main/java/org/eclipse/jetty/websocket/server/JettyWebSocketServerContainer.java @@ -184,7 +184,7 @@ public void notifySessionListeners(Consumer consumer) } catch (Throwable x) { - LOG.info("Exception while invoking listener " + listener, x); + LOG.info("Exception while invoking listener {}", listener, x); } } }