diff options
Diffstat (limited to 'unoxml/source/dom/documentbuilder.cxx')
-rw-r--r-- | unoxml/source/dom/documentbuilder.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/unoxml/source/dom/documentbuilder.cxx b/unoxml/source/dom/documentbuilder.cxx index 6cd4798a2608..eef5e387252c 100644 --- a/unoxml/source/dom/documentbuilder.cxx +++ b/unoxml/source/dom/documentbuilder.cxx @@ -278,19 +278,19 @@ namespace DOM // default warning handler does not trigger assertion static void warning_func(void * ctx, const char * /*msg*/, ...) { - OUStringBuffer buf("libxml2 warning\n"); - buf.append(make_error_message(static_cast< xmlParserCtxtPtr >(ctx))); - OString msg = OUStringToOString(buf.makeStringAndClear(), RTL_TEXTENCODING_ASCII_US); - OSL_TRACE(msg.getStr()); + SAL_INFO( + "unoxml", + "libxml2 warning: " + << make_error_message(static_cast<xmlParserCtxtPtr>(ctx))); } // default error handler triggers assertion static void error_func(void * ctx, const char * /*msg*/, ...) { - OUStringBuffer buf("libxml2 error\n"); - buf.append(make_error_message(static_cast< xmlParserCtxtPtr >(ctx))); - OString msg = OUStringToOString(buf.makeStringAndClear(), RTL_TEXTENCODING_ASCII_US); - OSL_FAIL(msg.getStr()); + SAL_WARN( + "unoxml", + "libxml2 error: " + << make_error_message(static_cast<xmlParserCtxtPtr>(ctx))); } } // extern "C" |