From: Arvin Schnell Date: Thu, 6 Oct 2011 14:55:15 +0000 (+0200) Subject: - set libxml error function X-Git-Tag: v0.1.3~273 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=75dcdd7cb2cb600955dd449832a80d88d39cf3a3;p=thirdparty%2Fsnapper.git - set libxml error function --- diff --git a/snapper/AppUtil.cc b/snapper/AppUtil.cc index cad4fc4e..20b0ac74 100644 --- a/snapper/AppUtil.cc +++ b/snapper/AppUtil.cc @@ -33,6 +33,7 @@ #include #include #include +#include #include #include @@ -263,6 +264,15 @@ logStreamClose(LogLevel level, const char* file, unsigned line, const char* func delete stream; } + + void + xml_error_func(void* ctx, const char* msg, ...) + { + } + + xmlGenericErrorFunc xml_error_func_ptr = &xml_error_func; + + void initDefaultLogger() { string path; @@ -287,6 +297,8 @@ void initDefaultLogger() file = "snapper.log"; } createLogger("default", path, file); + + initGenericErrorDefaultFunc(&xml_error_func_ptr); }