You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ko...@apache.org on 2012/03/17 08:11:13 UTC

svn commit: r1301877 - in /lucene/dev/branches/branch_3x: ./ lucene/ solr/ solr/core/ solr/core/src/java/org/apache/solr/update/processor/URLClassifyProcessor.java

Author: koji
Date: Sat Mar 17 07:11:13 2012
New Revision: 1301877

URL: http://svn.apache.org/viewvc?rev=1301877&view=rev
Log:
SOLR-2826: use logging rather than e.printStackTrace()

Modified:
    lucene/dev/branches/branch_3x/   (props changed)
    lucene/dev/branches/branch_3x/lucene/   (props changed)
    lucene/dev/branches/branch_3x/solr/   (props changed)
    lucene/dev/branches/branch_3x/solr/core/   (props changed)
    lucene/dev/branches/branch_3x/solr/core/src/java/org/apache/solr/update/processor/URLClassifyProcessor.java

Modified: lucene/dev/branches/branch_3x/solr/core/src/java/org/apache/solr/update/processor/URLClassifyProcessor.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_3x/solr/core/src/java/org/apache/solr/update/processor/URLClassifyProcessor.java?rev=1301877&r1=1301876&r2=1301877&view=diff
==============================================================================
--- lucene/dev/branches/branch_3x/solr/core/src/java/org/apache/solr/update/processor/URLClassifyProcessor.java (original)
+++ lucene/dev/branches/branch_3x/solr/core/src/java/org/apache/solr/update/processor/URLClassifyProcessor.java Sat Mar 17 07:11:13 2012
@@ -130,9 +130,9 @@ public class URLClassifyProcessor extend
           }
           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());
         }
       }
     }