jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r1539045 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/ConsistencyCheck.java
Date Tue, 05 Nov 2013 16:18:38 GMT
Author: jukka
Date: Tue Nov  5 16:18:38 2013
New Revision: 1539045

URL: http://svn.apache.org/r1539045
Log:
JCR-3691: Search index consistency check logs unnecessary warnings for repairable errors

Improve logging of error conditions

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/ConsistencyCheck.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/ConsistencyCheck.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/ConsistencyCheck.java?rev=1539045&r1=1539044&r2=1539045&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/ConsistencyCheck.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/ConsistencyCheck.java
Tue Nov  5 16:18:38 2013
@@ -72,7 +72,6 @@ public class ConsistencyCheck {
      */
     private static final int NODESATONCE = Integer.getInteger("org.apache.jackrabbit.checker.nodesatonce",
1024 * 8);
 
-
     private final SearchIndex handler;
 
     /**
@@ -174,7 +173,7 @@ public class ConsistencyCheck {
                 }
             } catch (Exception e) {
                 if (ignoreFailure) {
-                    log.warn("Exception while repairing: " + e);
+                    log.warn("Exception while repairing: " + error, e);
                 } else {
                     if (!(e instanceof IOException)) {
                         e = new IOException(e.getMessage());



Mime
View raw message