From c916076635aaebc68cb832075ae44126a3d0918d Mon Sep 17 00:00:00 2001 From: Michael Boquard Date: Wed, 17 Apr 2024 11:35:35 -0400 Subject: [PATCH] kafka: Reduced maximum log line size to 128KiB Fixes: CORE-2409 Signed-off-by: Michael Boquard (cherry picked from commit 1a536c20f550bc02d1684f7b94c216b620b4a126) --- src/v/kafka/protocol/logger.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/v/kafka/protocol/logger.cc b/src/v/kafka/protocol/logger.cc index 5f27588c99d8c..8b993f502adc8 100644 --- a/src/v/kafka/protocol/logger.cc +++ b/src/v/kafka/protocol/logger.cc @@ -9,7 +9,10 @@ #include "kafka/server/logger.h" +#include "base/units.h" + namespace kafka { +static constexpr size_t max_log_line_bytes = 128_KiB; ss::logger klog("kafka"); -truncating_logger kwire(klog, 1048576); +truncating_logger kwire(klog, max_log_line_bytes); } // namespace kafka