SOLR-541: Legacy XML update support wasn't logging errors.

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@648794 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Chris M. Hostetter 2008-04-16 19:03:43 +00:00
parent 3292c2f756
commit 783bd8c9e9
2 changed files with 7 additions and 1 deletions

View File

@ -350,7 +350,12 @@ Bug Fixes
(hossman)
25. SOLR-400: SolrExceptionTest should now handle using OpenDNS as a DNS provider (gsingers)
26. SOLR-541: Legacy XML update support (provided by SolrUpdateServlet
when no RequestHandler is mapped to "/update") now logs error correctly.
(hossman)
Other Changes
1. SOLR-135: Moved common classes to org.apache.solr.common and altered the
build scripts to make two jars: apache-solr-1.3.jar and

View File

@ -389,6 +389,7 @@ public class XmlUpdateRequestHandler extends RequestHandlerBase
}
catch (Exception ex) {
try {
SolrException.logOnce(log, "Error processing \"legacy\" update command", ex);
XML.writeXML(output, "result", SolrException.toStr(ex), "status", "1");
} catch (Exception ee) {
log.severe("Error writing to output stream: " + ee);