From 35a7966a972b9c41a52bf6ad74214ce35295cdb0 Mon Sep 17 00:00:00 2001 From: Fiereu Date: Sat, 25 Jul 2026 17:29:42 +0200 Subject: [PATCH] chore(network): note the protocol logger should log raw packets (#59) --- network/src/main/kotlin/de/fiereu/network/Pipeline.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/network/src/main/kotlin/de/fiereu/network/Pipeline.kt b/network/src/main/kotlin/de/fiereu/network/Pipeline.kt index a82d1e8..dc8787f 100644 --- a/network/src/main/kotlin/de/fiereu/network/Pipeline.kt +++ b/network/src/main/kotlin/de/fiereu/network/Pipeline.kt @@ -69,6 +69,9 @@ fun installPipeline( pipeline.addLast(PipelineNames.CHECKSUM_ENCODER, ChecksumFrameEncoder(NoOpChecksum)) pipeline.addLast(PipelineNames.CIPHER_DECODER, CipherDecoder(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) { pipeline.addLast(PipelineNames.PROTOCOL_LOGGER, LoggingHandler(LogLevel.TRACE)) }