fix: google::protobuf::SetLogHandler is no longer available since protobuf 22

This commit is contained in:
Paul Pan 2024-03-13 15:52:11 +08:00
parent a00a0efabc
commit cf5d6387df

View File

@ -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);