Skip to content

Commit

Permalink
kafka: Reduced maximum log line size to 128KiB
Browse files Browse the repository at this point in the history
Fixes: CORE-2409

Signed-off-by: Michael Boquard <[email protected]>
(cherry picked from commit 1a536c2)
  • Loading branch information
michael-redpanda authored and vbotbuildovich committed Apr 17, 2024
1 parent c2fc38c commit c916076
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/v/kafka/protocol/logger.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit c916076

Please sign in to comment.