Improved debug logging in MongoQueryCreator.

This commit is contained in:
Oliver Gierke
2011-02-14 14:24:17 +01:00
parent 16a3a60d80
commit 3a1ccf5adc

View File

@@ -15,7 +15,7 @@
*/ */
package org.springframework.data.document.mongodb.repository; package org.springframework.data.document.mongodb.repository;
import static org.springframework.data.document.mongodb.query.Criteria.where; import static org.springframework.data.document.mongodb.query.Criteria.*;
import java.util.Collections; import java.util.Collections;
import java.util.regex.Pattern; import java.util.regex.Pattern;
@@ -127,7 +127,7 @@ class MongoQueryCreator extends AbstractQueryCreator<Query, Criteria> {
Query query = new Query(criteria); Query query = new Query(criteria);
if (LOG.isDebugEnabled()) { if (LOG.isDebugEnabled()) {
LOG.debug("Created query " + query); LOG.debug("Created query " + query.getQueryObject());
} }
return query; return query;