You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@solr.apache.org by ds...@apache.org on 2021/11/20 03:12:42 UTC

[solr] branch main updated: Logging: SpellCheckComponent shouldn't log at info level (#422)

This is an automated email from the ASF dual-hosted git repository.

dsmiley pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/solr.git


The following commit(s) were added to refs/heads/main by this push:
     new 058f2b6  Logging: SpellCheckComponent shouldn't log at info level (#422)
058f2b6 is described below

commit 058f2b64d02032943816203324031442ff8ae8b1
Author: Nazerke Seidan <se...@gmail.com>
AuthorDate: Sat Nov 20 04:12:37 2021 +0100

    Logging: SpellCheckComponent shouldn't log at info level (#422)
    
    Co-authored-by: Nazerke Seidan <ns...@salesforce.com>
---
 .../java/org/apache/solr/handler/component/SpellCheckComponent.java | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/solr/core/src/java/org/apache/solr/handler/component/SpellCheckComponent.java b/solr/core/src/java/org/apache/solr/handler/component/SpellCheckComponent.java
index 48e3b43..5ce1bdd 100644
--- a/solr/core/src/java/org/apache/solr/handler/component/SpellCheckComponent.java
+++ b/solr/core/src/java/org/apache/solr/handler/component/SpellCheckComponent.java
@@ -401,8 +401,8 @@ public class SpellCheckComponent extends SearchComponent implements SolrCoreAwar
             throw new SolrException(SolrException.ErrorCode.SERVER_ERROR,
                 "Unable to read spelling info for shard: " + srsp.getShard(), e);
           }
-          if (log.isInfoEnabled()) {
-            log.info("{} {}", srsp.getShard(), nl);
+          if (log.isDebugEnabled()) {
+            log.debug("{} {}", srsp.getShard(), nl);
           }
           if (nl != null) {
             mergeData.totalNumberShardResponses++;
@@ -695,7 +695,7 @@ public class SpellCheckComponent extends SearchComponent implements SolrCoreAwar
   @SuppressWarnings({"unchecked"})
   public void inform(SolrCore core) {
     if (initParams != null) {
-      log.info("Initializing spell checkers");
+      log.debug("Initializing spell checkers");
       boolean hasDefault = false;
       for (int i = 0; i < initParams.size(); i++) {
         if (initParams.getName(i).equals("spellchecker")) {