Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

SOLR-2826: use logging rather than e.printStackTrace()

Koji Sekiguchie4ff34cc6590
diff --git a/solr/core/src/java/org/apache/solr/update/processor/URLClassifyProcessor.java b/solr/core/src/java/org/apache/solr/update/processor/URLClassifyProcessor.java
index f6e3d4f590f..bce6c1a4945 100644
--- a/solr/core/src/java/org/apache/solr/update/processor/URLClassifyProcessor.java
+++ b/solr/core/src/java/org/apache/solr/update/processor/URLClassifyProcessor.java
@@ -130,9 +130,9 @@ public class URLClassifyProcessor extends UpdateRequestProcessor {
}
log.debug(document.toString());
} catch (MalformedURLException e) {
- e.printStackTrace();
+ log.warn("cannot get the normalized url for \"" + url + "\" due to " + e.getMessage());
} catch (URISyntaxException e) {
- e.printStackTrace();
+ log.warn("cannot get the normalized url for \"" + url + "\" due to " + e.getMessage());
}
}
}