From b5443833d9633d69b61cf70fa54a730d2f232338 Mon Sep 17 00:00:00 2001 From: nmittler Date: Thu, 7 May 2015 07:50:15 -0700 Subject: [PATCH] Fixing build issue. --- .../java/io/grpc/transport/netty/NettyClientHandler.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/netty/src/main/java/io/grpc/transport/netty/NettyClientHandler.java b/netty/src/main/java/io/grpc/transport/netty/NettyClientHandler.java index a2708b76a6..e2940e3cfc 100644 --- a/netty/src/main/java/io/grpc/transport/netty/NettyClientHandler.java +++ b/netty/src/main/java/io/grpc/transport/netty/NettyClientHandler.java @@ -35,8 +35,6 @@ import static io.netty.util.CharsetUtil.UTF_8; import com.google.common.base.Preconditions; -import com.sun.istack.internal.logging.Logger; - import io.grpc.Metadata; import io.grpc.Status; import io.grpc.transport.HttpUtil; @@ -58,6 +56,9 @@ import io.netty.handler.codec.http2.Http2Headers; import io.netty.handler.codec.http2.Http2Stream; import io.netty.handler.codec.http2.Http2StreamVisitor; +import java.util.logging.Level; +import java.util.logging.Logger; + import javax.annotation.Nullable; /** @@ -65,7 +66,7 @@ import javax.annotation.Nullable; * the context of the Netty Channel thread. */ class NettyClientHandler extends Http2ConnectionHandler { - private static final Logger logger = Logger.getLogger(NettyClientHandler.class); + private static final Logger logger = Logger.getLogger(NettyClientHandler.class.getName()); private final Http2Connection.PropertyKey streamKey; private int connectionWindowSize; @@ -220,7 +221,7 @@ class NettyClientHandler extends Http2ConnectionHandler { @Override protected void onConnectionError(ChannelHandlerContext ctx, Throwable cause, Http2Exception http2Ex) { - logger.fine("Caught a connection error", cause); + logger.log(Level.FINE, "Caught a connection error", cause); // Save the error. connectionError = cause;