chore(network): note the protocol logger should log raw packets (#59)
This commit is contained in:
1 parent
651a1fbb67
commit
35a7966a97
1 file changed
+3
@@ -69,6 +69,9 @@ fun installPipeline(
|
|||||||
pipeline.addLast(PipelineNames.CHECKSUM_ENCODER, ChecksumFrameEncoder(NoOpChecksum))
|
pipeline.addLast(PipelineNames.CHECKSUM_ENCODER, ChecksumFrameEncoder(NoOpChecksum))
|
||||||
pipeline.addLast(PipelineNames.CIPHER_DECODER, CipherDecoder(NoOpSessionCipher))
|
pipeline.addLast(PipelineNames.CIPHER_DECODER, CipherDecoder(NoOpSessionCipher))
|
||||||
pipeline.addLast(PipelineNames.CIPHER_ENCODER, CipherEncoder(NoOpSessionCipher))
|
pipeline.addLast(PipelineNames.CIPHER_ENCODER, CipherEncoder(NoOpSessionCipher))
|
||||||
|
// TODO: the compression codec is inserted between this logger and the protocol handler, so this
|
||||||
|
// logs compressed frames. Reposition it next to the protocol handler to log raw packets, before
|
||||||
|
// compression on the way out and after decompression on the way in.
|
||||||
if (options.frameLogging) {
|
if (options.frameLogging) {
|
||||||
pipeline.addLast(PipelineNames.PROTOCOL_LOGGER, LoggingHandler(LogLevel.TRACE))
|
pipeline.addLast(PipelineNames.PROTOCOL_LOGGER, LoggingHandler(LogLevel.TRACE))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user