Browse Source

修改调试模式

sensordb2 1 year ago
parent
commit
ea1ba21179
1 changed files with 3 additions and 0 deletions
  1. 3 0
      insert-app/src/main/java/db/netty/NettyServer.java

+ 3 - 0
insert-app/src/main/java/db/netty/NettyServer.java

@@ -48,6 +48,8 @@ public class NettyServer {
     @Value("${system.udp-server.use-multithread}")
     private Boolean useMultiThread;
 
+    @Value("${debug.justReceivePacket}")
+    private Boolean isJustReceivePacket;
 
     private DelayQueue<BasePackage> sendingQueue = new DelayQueue<>();
 
@@ -63,6 +65,7 @@ public class NettyServer {
         group = useMultiThread ? new EpollEventLoopGroup() : new NioEventLoopGroup();
 
         log.info("开始启动 Netty Server,host:{} port: {}", host, port);
+        log.info("Netty-Server isJustReceivePacket:{}", isJustReceivePacket);
         Bootstrap bootstrap = new Bootstrap();
 
         Encoder encoder = new Encoder();