From edf94abef30d207d19f56b642564d7274fca6d9b Mon Sep 17 00:00:00 2001 From: Christine Poerschke Date: Tue, 20 Sep 2022 15:12:38 +0100 Subject: [PATCH] SOLR-16413: shorten long Grouping.searchWithTimeLimiter warnings (#796) --- solr/core/src/java/org/apache/solr/search/Grouping.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/solr/core/src/java/org/apache/solr/search/Grouping.java b/solr/core/src/java/org/apache/solr/search/Grouping.java index 266cbdba196..0d28b7d4c6f 100644 --- a/solr/core/src/java/org/apache/solr/search/Grouping.java +++ b/solr/core/src/java/org/apache/solr/search/Grouping.java @@ -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); } }