From 98d81b285c228d7cb27ef25e0216db1d2581fc79 Mon Sep 17 00:00:00 2001 From: Dao Ngoc Date: Sat, 1 Mar 2014 06:38:54 +0900 Subject: [PATCH] Fix #2275 %s WebSocket version %s server handshake --- .../codec/http/websocketx/WebSocketServerHandshaker.java | 2 +- .../codec/http/websocketx/WebSocketServerHandshaker07.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/codec-http/src/main/java/io/netty/handler/codec/http/websocketx/WebSocketServerHandshaker.java b/codec-http/src/main/java/io/netty/handler/codec/http/websocketx/WebSocketServerHandshaker.java index f94b4f79f3..c2ca118d35 100644 --- a/codec-http/src/main/java/io/netty/handler/codec/http/websocketx/WebSocketServerHandshaker.java +++ b/codec-http/src/main/java/io/netty/handler/codec/http/websocketx/WebSocketServerHandshaker.java @@ -156,7 +156,7 @@ public abstract class WebSocketServerHandshaker { HttpHeaders responseHeaders, final ChannelPromise promise) { if (logger.isDebugEnabled()) { - logger.debug("%s WebSocket version %s server handshake", channel, version()); + logger.debug("{} WebSocket version {} server handshake", channel, version()); } FullHttpResponse response = newHandshakeResponse(req, responseHeaders); ChannelPipeline p = channel.pipeline(); diff --git a/codec-http/src/main/java/io/netty/handler/codec/http/websocketx/WebSocketServerHandshaker07.java b/codec-http/src/main/java/io/netty/handler/codec/http/websocketx/WebSocketServerHandshaker07.java index 329f823bd4..52f461eacc 100644 --- a/codec-http/src/main/java/io/netty/handler/codec/http/websocketx/WebSocketServerHandshaker07.java +++ b/codec-http/src/main/java/io/netty/handler/codec/http/websocketx/WebSocketServerHandshaker07.java @@ -111,7 +111,7 @@ public class WebSocketServerHandshaker07 extends WebSocketServerHandshaker { String accept = WebSocketUtil.base64(sha1); if (logger.isDebugEnabled()) { - logger.debug("WebSocket version 07 server handshake key: {}, response: %s.", key, accept); + logger.debug("WebSocket version 07 server handshake key: {}, response: {}.", key, accept); } res.headers().add(Names.UPGRADE, WEBSOCKET.toLowerCase());