[fix] log

This commit is contained in:
wujiawei 2024-01-23 18:14:10 +08:00
parent 0382c300d7
commit 05459f9a04
2 changed files with 2 additions and 1 deletions

View File

@ -6,7 +6,7 @@
#docker login --username=1207537021@qq.com registry.cn-hangzhou.aliyuncs.com
#mvn clean install
mvn clean install
docker build -t registry.cn-hangzhou.aliyuncs.com/wu-lazy/wu-lazy-cloud-heartbeat-server:1.2.2-JDK17-SNAPSHOT .
docker push registry.cn-hangzhou.aliyuncs.com/wu-lazy/wu-lazy-cloud-heartbeat-server:1.2.2-JDK17-SNAPSHOT

View File

@ -52,6 +52,7 @@ public class VisitorHandler extends SimpleChannelInboundHandler<ByteBuf> {
// 客户端心跳通道
ChannelContext.ClientChannel clientChannel = ChannelContext.get(clientId);
if (clientChannel != null) {
log.info("通过客户端:{},获取通道而后创建连接",clientId);
Channel channel = clientChannel.getChannel();
channel.writeAndFlush(nettyProxyMsg);
}else {