Skip to content

Commit

Permalink
ISPN-15898 QueryEngine logs a DEBUG message for every query executed
Browse files Browse the repository at this point in the history
  • Loading branch information
wburns authored and pruivo committed Apr 4, 2024
1 parent 15690d4 commit a808cd5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,7 @@ protected QueryEngine(AdvancedCache<?, ?> cache, Class<? extends Matcher> matche
}

public Query<?> buildQuery(QueryFactory queryFactory, IckleParsingResult<TypeMetadata> parsingResult, Map<String, Object> namedParameters, long startOffset, int maxResults, boolean local) {
if (log.isDebugEnabled()) {
log.debugf("Building query '%s' with parameters %s", parsingResult.getQueryString(), namedParameters);
}
log.tracef("Building query '%s' with parameters %s", parsingResult.getQueryString(), namedParameters);

BaseQuery<?> query = parsingResult.hasGroupingOrAggregations() ?
buildQueryWithAggregations(queryFactory, parsingResult.getQueryString(), namedParameters, startOffset, maxResults, parsingResult, local) :
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -653,9 +653,7 @@ protected RowProcessor makeProjectionProcessor(Class<?>[] projectedTypes, Object
}

public SearchQueryBuilder buildSearchQuery(String queryString, Map<String, Object> namedParameters) {
if (log.isDebugEnabled()) {
log.debugf("Building Lucene query for Ickle query: %s", queryString);
}
log.tracef("Building Lucene query for Ickle query: %s", queryString);

if (!isIndexed) {
throw CONTAINER.cannotRunLuceneQueriesIfNotIndexed(cache.getName());
Expand Down

0 comments on commit a808cd5

Please sign in to comment.