From 5e208af04f71a04e3003092c88b3ebe84e416647 Mon Sep 17 00:00:00 2001 From: Ben Pope Date: Mon, 29 Jul 2024 18:35:21 +0100 Subject: [PATCH] schema_registry: Disable protobuf logging Fixes CORE-2144 Signed-off-by: Ben Pope (cherry picked from commit 3aacc02536a970997c8e707e20db1d7a28ed9a73) --- src/v/redpanda/application.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/v/redpanda/application.cc b/src/v/redpanda/application.cc index 4e914a6752f92..80b147588279b 100644 --- a/src/v/redpanda/application.cc +++ b/src/v/redpanda/application.cc @@ -135,6 +135,7 @@ #include #include +#include #include #include @@ -513,6 +514,12 @@ void application::initialize( .get(); _cpu_profiler.invoke_on_all(&resources::cpu_profiler::start).get(); + /* + * Disable the logger for protobuf; some interfaces don't allow a pluggable + * error collector. + */ + google::protobuf::SetLogHandler(nullptr); + /* * allocate per-core zstd decompression workspace and per-core * async_stream_zstd workspaces. it can be several megabytes in size, so do