]> git.ipfire.org Git - thirdparty/snapper.git/commitdiff
- set libxml error function
authorArvin Schnell <aschnell@g84.(none)>
Thu, 6 Oct 2011 14:55:15 +0000 (16:55 +0200)
committerArvin Schnell <aschnell@g84.(none)>
Thu, 6 Oct 2011 14:55:15 +0000 (16:55 +0200)
snapper/AppUtil.cc

index cad4fc4ebb5b1fe3ea4553161a371daba34f23cc..20b0ac74f2b8f9633b4a3ca8f016520850c1c48d 100644 (file)
@@ -33,6 +33,7 @@
 #include <dirent.h>
 #include <pwd.h>
 #include <string>
+#include <libxml/tree.h>
 #include <boost/algorithm/string.hpp>
 
 #include <blocxx/AppenderLogger.hpp>
@@ -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);
     }