Skip to content

Commit

Permalink
schema_registry: Disable protobuf logging
Browse files Browse the repository at this point in the history
Fixes CORE-2144

Signed-off-by: Ben Pope <[email protected]>
(cherry picked from commit 3aacc02)
  • Loading branch information
BenPope authored and vbotbuildovich committed Jul 30, 2024
1 parent ae93d9b commit 5e208af
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/v/redpanda/application.cc
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@
#include <seastar/util/defer.hh>
#include <seastar/util/log.hh>

#include <google/protobuf/stubs/logging.h>
#include <sys/resource.h>
#include <sys/utsname.h>

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 5e208af

Please sign in to comment.