jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r681059 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/LuceneQueryBuilder.java
Date Wed, 30 Jul 2008 14:10:52 GMT
Author: mreutegg
Date: Wed Jul 30 07:10:50 2008
New Revision: 681059

URL: http://svn.apache.org/viewvc?rev=681059&view=rev
Log:
JCR-1699: Do not log warning when coercing value in query is not possible

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

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/LuceneQueryBuilder.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/LuceneQueryBuilder.java?rev=681059&r1=681058&r2=681059&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/LuceneQueryBuilder.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/LuceneQueryBuilder.java
Wed Jul 30 07:10:50 2008
@@ -987,9 +987,9 @@
                         values.add(nsMappings.translatePropertyName(n));
                         log.debug("Coerced " + literal + " into NAME.");
                     } catch (NameException e) {
-                        log.warn("Unable to coerce '" + literal + "' into a NAME: " + e.toString());
+                        log.debug("Unable to coerce '" + literal + "' into a NAME: " + e.toString());
                     } catch (NamespaceException e) {
-                        log.warn("Unable to coerce '" + literal + "' into a NAME: " + e.toString());
+                        log.debug("Unable to coerce '" + literal + "' into a NAME: " + e.toString());
                     }
                     break;
                 case PropertyType.PATH:
@@ -999,9 +999,9 @@
                         values.add(resolver.getJCRPath(p));
                         log.debug("Coerced " + literal + " into PATH.");
                     } catch (NameException e) {
-                        log.warn("Unable to coerce '" + literal + "' into a PATH: " + e.toString());
+                        log.debug("Unable to coerce '" + literal + "' into a PATH: " + e.toString());
                     } catch (NamespaceException e) {
-                        log.warn("Unable to coerce '" + literal + "' into a PATH: " + e.toString());
+                        log.debug("Unable to coerce '" + literal + "' into a PATH: " + e.toString());
                     }
                     break;
                 case PropertyType.DATE:
@@ -1011,7 +1011,7 @@
                         values.add(DateField.timeToString(c.getTimeInMillis()));
                         log.debug("Coerced " + literal + " into DATE.");
                     } else {
-                        log.warn("Unable to coerce '" + literal + "' into a DATE.");
+                        log.debug("Unable to coerce '" + literal + "' into a DATE.");
                     }
                     break;
                 case PropertyType.DOUBLE:
@@ -1021,7 +1021,7 @@
                         values.add(DoubleField.doubleToString(d));
                         log.debug("Coerced " + literal + " into DOUBLE.");
                     } catch (NumberFormatException e) {
-                        log.warn("Unable to coerce '" + literal + "' into a DOUBLE: " + e.toString());
+                        log.debug("Unable to coerce '" + literal + "' into a DOUBLE: " +
e.toString());
                     }
                     break;
                 case PropertyType.LONG:
@@ -1031,7 +1031,7 @@
                         values.add(LongField.longToString(l));
                         log.debug("Coerced " + literal + " into LONG.");
                     } catch (NumberFormatException e) {
-                        log.warn("Unable to coerce '" + literal + "' into a LONG: " + e.toString());
+                        log.debug("Unable to coerce '" + literal + "' into a LONG: " + e.toString());
                     }
                     break;
                 case PropertyType.STRING:



Mime
View raw message