Skip to content

Commit

Permalink
SOLR-16413: shorten long Grouping.searchWithTimeLimiter warnings (apa…
Browse files Browse the repository at this point in the history
  • Loading branch information
cpoerschke authored Sep 20, 2022
1 parent f2a9aa5 commit edf94ab
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion solr/core/src/java/org/apache/solr/search/Grouping.java
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,10 @@ private void searchWithTimeLimiter(final Query filterQuery, Collector collector)
searcher.search(QueryUtils.combineQueryAndFilter(query, filterQuery), collector);
} catch (TimeLimitingCollector.TimeExceededException
| ExitableDirectoryReader.ExitingReaderException x) {
log.warn("Query: {}; ", query, x);
// INFO log the (possibly quite long) query object separately
log.info("Query: {}; ", query);
// to make WARN logged exception content more visible
log.warn("Query: {}; ", query.getClass().getName(), x);
qr.setPartialResults(true);
}
}
Expand Down

0 comments on commit edf94ab

Please sign in to comment.