Procházet zdrojové kódy

修改调试模式

sensordb2 před 1 rokem
rodič
revize
ea1ba21179

+ 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();