Skip to content

Commit 1c64af8

Browse files
committed
[grid] Improving logging for RequestConverter
[skip ci]
1 parent d8f3b4f commit 1c64af8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎java/src/org/openqa/selenium/netty/server/RequestConverter.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,10 @@ class RequestConverter extends SimpleChannelInboundHandler<HttpObject> {
6161
protected void channelRead0(
6262
ChannelHandlerContext ctx,
6363
HttpObject msg) throws Exception {
64-
LOG.fine("Incoming message: " + msg);
64+
LOG.log(Debug.getDebugLogLevel(), "Incoming message: " + msg);
6565

6666
if (msg instanceof io.netty.handler.codec.http.HttpRequest) {
67-
LOG.fine("Start of http request: " + msg);
67+
LOG.log(Debug.getDebugLogLevel(), "Start of http request: " + msg);
6868

6969
io.netty.handler.codec.http.HttpRequest nettyRequest =
7070
(io.netty.handler.codec.http.HttpRequest) msg;
@@ -113,7 +113,7 @@ protected void channelRead0(
113113
}
114114

115115
if (msg instanceof LastHttpContent) {
116-
LOG.fine("Closing input pipe.");
116+
LOG.log(Debug.getDebugLogLevel(), "Closing input pipe.");
117117
EXECUTOR.submit(() -> {
118118
try {
119119
out.close();

0 commit comments

Comments
 (0)