Skip to content

Commit 9f110ff

Browse files
committed
clean log
1 parent f52ec4b commit 9f110ff

File tree

3 files changed

+4
-13
lines changed

3 files changed

+4
-13
lines changed

src/main/java/love/wangqi/filter/command/HttpClientPool.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ private HttpClientPool() {
4545
poolMap = new AbstractChannelPoolMap<RequestHolder, SimpleChannelPool>() {
4646
@Override
4747
protected SimpleChannelPool newPool(RequestHolder requestHolder) {
48-
logger.debug("address: {}", requestHolder.getSocketAddress());
4948
return new FixedChannelPool(bootstrap.remoteAddress(requestHolder.getSocketAddress()), new HttpPoolHandler(requestHolder), 50);
5049
}
5150
};

src/main/java/love/wangqi/filter/command/HttpHandler.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,6 @@ public void channelRead0(ChannelHandlerContext ctx, FullHttpResponse response) t
4040
clientChannel.attr(Attributes.CLIENT_POOL).get().release(clientChannel);
4141
}
4242

43-
@Override
44-
public void channelActive(ChannelHandlerContext ctx) throws Exception {
45-
System.out.println("channelActive");
46-
super.channelActive(ctx);
47-
}
48-
4943
@Override
5044
public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception {
5145
Channel serverChannel = ctx.channel().attr(Attributes.SERVER_CHANNEL).get();
@@ -59,10 +53,4 @@ public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws E
5953
}
6054
GatewayRunner.getInstance().errorAction(serverChannel);
6155
}
62-
63-
@Override
64-
public void channelInactive(ChannelHandlerContext ctx) throws Exception {
65-
System.out.println("channelInactive");
66-
super.channelInactive(ctx);
67-
}
6856
}

src/main/resources/logback.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,9 @@
1818

1919
</logger>
2020

21+
<logger name="love.wangqi.handler.FrontFilter" level="info">
22+
23+
</logger>
24+
2125

2226
</configuration>

0 commit comments

Comments
 (0)