From cf5d6387df2d3bf3abddce0c6f9ee3820e8bc2ae Mon Sep 17 00:00:00 2001 From: Paul Pan Date: Wed, 13 Mar 2024 15:52:11 +0800 Subject: [PATCH] fix: `google::protobuf::SetLogHandler` is no longer available since protobuf 22 --- config.cc | 6 ------ 1 file changed, 6 deletions(-) diff --git a/config.cc b/config.cc index 077c1b9..7f0b4d7 100644 --- a/config.cc +++ b/config.cc @@ -302,11 +302,6 @@ static bool parseInternal(nsjconf_t* nsjconf, const nsjail::NsJailConfig& njc) { return true; } -static void logHandler( - google::protobuf::LogLevel level, const char* filename, int line, const std::string& message) { - LOG_W("config.cc: '%s'", message.c_str()); -} - bool parseFile(nsjconf_t* nsjconf, const char* file) { LOG_D("Parsing configuration from '%s'", file); @@ -316,7 +311,6 @@ bool parseFile(nsjconf_t* nsjconf, const char* file) { return false; } - google::protobuf::SetLogHandler(logHandler); google::protobuf::io::FileInputStream input(fd); input.SetCloseOnDelete(true);