fix: google::protobuf::SetLogHandler
is no longer available since protobuf 22
This commit is contained in:
parent
a00a0efabc
commit
cf5d6387df
@ -302,11 +302,6 @@ static bool parseInternal(nsjconf_t* nsjconf, const nsjail::NsJailConfig& njc) {
|
|||||||
return true;
|
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) {
|
bool parseFile(nsjconf_t* nsjconf, const char* file) {
|
||||||
LOG_D("Parsing configuration from '%s'", file);
|
LOG_D("Parsing configuration from '%s'", file);
|
||||||
|
|
||||||
@ -316,7 +311,6 @@ bool parseFile(nsjconf_t* nsjconf, const char* file) {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
google::protobuf::SetLogHandler(logHandler);
|
|
||||||
google::protobuf::io::FileInputStream input(fd);
|
google::protobuf::io::FileInputStream input(fd);
|
||||||
input.SetCloseOnDelete(true);
|
input.SetCloseOnDelete(true);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user