diff options
Diffstat (limited to 'contrib/xml')
-rw-r--r-- | contrib/xml/pgxml.c | 8 | ||||
-rw-r--r-- | contrib/xml/pgxml_dom.c | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/contrib/xml/pgxml.c b/contrib/xml/pgxml.c index 3939250e25..682e7395b9 100644 --- a/contrib/xml/pgxml.c +++ b/contrib/xml/pgxml.c @@ -75,7 +75,7 @@ pgxml_parse(PG_FUNCTION_ARGS) if (!XML_Parse(p, (char *) VARDATA(t), docsize, 1)) { /* - * elog(NOTICE, "Parse error at line %d:%s", + * elog(WARNING, "Parse error at line %d:%s", * XML_GetCurrentLineNumber(p), * XML_ErrorString(XML_GetErrorCode(p))); */ @@ -158,7 +158,7 @@ build_xpath_results(text *doc, text *pathstr) if (!XML_Parse(p, (char *) VARDATA(doc), docsize, 1)) { /* - * elog(NOTICE, "Parse error at line %d:%s", + * elog(WARNING, "Parse error at line %d:%s", * XML_GetCurrentLineNumber(p), * XML_ErrorString(XML_GetErrorCode(p))); */ @@ -267,7 +267,7 @@ pgxml_starthandler(void *userData, const XML_Char * name, char sepstr[] = "/"; if ((strlen(name) + strlen(UD->currentpath)) > MAXPATHLENGTH - 2) - elog(NOTICE, "Path too long"); + elog(WARNING, "Path too long"); else { strncat(UD->currentpath, sepstr, 1); @@ -302,7 +302,7 @@ pgxml_endhandler(void *userData, const XML_Char * name) } if (strcmp(name, sepptr + 1) != 0) { - elog(NOTICE, "Wanted [%s], got [%s]", sepptr, name); + elog(WARNING, "Wanted [%s], got [%s]", sepptr, name); /* unmatched entry, so do nothing */ } else diff --git a/contrib/xml/pgxml_dom.c b/contrib/xml/pgxml_dom.c index f2f9973b89..0c22aced06 100644 --- a/contrib/xml/pgxml_dom.c +++ b/contrib/xml/pgxml_dom.c @@ -213,7 +213,7 @@ pgxml_xpath(PG_FUNCTION_ARGS) comppath = xmlXPathCompile(xpath); if (comppath == NULL) { - elog(NOTICE, "XPath syntax error"); + elog(WARNING, "XPath syntax error"); xmlFreeDoc(doctree); pfree((void *) xpath); PG_RETURN_NULL(); @@ -242,7 +242,7 @@ pgxml_xpath(PG_FUNCTION_ARGS) xpresstr = xmlStrdup(res->stringval); break; default: - elog(NOTICE, "Unsupported XQuery result: %d", res->type); + elog(WARNING, "Unsupported XQuery result: %d", res->type); xpresstr = xmlStrdup("<unsupported/>"); } |