문제

Running a WebSocket application (e.g. WebSocketServer), I am getting plenty of debugging messages like this:

18.02.2012 18:35:17 io.netty.handler.codec.http.websocketx.WebSocket08FrameEncoder
FEIN: Encoding WebSocket Frame opCode=1 length=20
18.02.2012 18:35:17 io.netty.handler.codec.http.websocketx.WebSocket08FrameDecoder
FEIN: Decoding WebSocket Frame opCode=1
18.02.2012 18:35:17 io.netty.handler.codec.http.websocketx.WebSocket08FrameDecoder
FEIN: Decoding WebSocket Frame length=16
18.02.2012 18:35:17 io.netty.handler.codec.http.websocketx.WebSocket08FrameDecoder
FEIN: Decoding WebSocket Frame opCode=8
18.02.2012 18:35:17 io.netty.handler.codec.http.websocketx.WebSocket08FrameDecoder
FEIN: Decoding WebSocket Frame length=2

Unfortunately I didn't find a way to deactivate them. Where can I do it?

도움이 되었습니까?

해결책

By default Netty use jdk logging API as its logging engine. This messages are logged via DEBUG loglevel so you just need to setup the logging to not print out debug messages for this class.

다른 팁

If you are using log4j logging, just put this line inside your log4j.properties file.

log4j.logger.io.netty.handler.codec.http.websocketx = OFF
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top