void-packages/srcpkgs/nsjail/patches/log.patch

25 lines
714 B
Diff

diff --git a/config.cc b/config.cc
index 5242ba4..bbb2b6d 100644
--- a/config.cc
+++ b/config.cc
@@ -302,11 +302,6 @@ static bool configParseInternal(nsjconf_t* nsjconf, const nsjail::NsJailConfig&
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;
}
- SetLogHandler(LogHandler);
google::protobuf::io::FileInputStream input(fd);
input.SetCloseOnDelete(true);