You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by md...@apache.org on 2020/04/22 17:13:12 UTC

[lucene-solr] branch master updated: SOLR-14412 use parameterized logging

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

mdrob pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git


The following commit(s) were added to refs/heads/master by this push:
     new 950a34c  SOLR-14412 use parameterized logging
950a34c is described below

commit 950a34ce13cb7eb86cbdbf7ce42b7e8363191ff1
Author: Mike Drob <md...@apache.org>
AuthorDate: Wed Apr 22 10:32:25 2020 -0500

    SOLR-14412 use parameterized logging
---
 .../apache/solr/client/solrj/impl/SolrClientNodeStateProvider.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/solr/solrj/src/java/org/apache/solr/client/solrj/impl/SolrClientNodeStateProvider.java b/solr/solrj/src/java/org/apache/solr/client/solrj/impl/SolrClientNodeStateProvider.java
index 554de2d..03bb91a 100644
--- a/solr/solrj/src/java/org/apache/solr/client/solrj/impl/SolrClientNodeStateProvider.java
+++ b/solr/solrj/src/java/org/apache/solr/client/solrj/impl/SolrClientNodeStateProvider.java
@@ -204,7 +204,7 @@ public class SolrClientNodeStateProvider implements NodeStateProvider, MapWriter
         }
       });
     } catch (Exception e) {
-      log.warn("could not get tags from node " + solrNode, e);
+      log.warn("could not get tags from node {}", solrNode, e);
     }
   }
 
@@ -360,7 +360,7 @@ public class SolrClientNodeStateProvider implements NodeStateProvider, MapWriter
           }
 
           if (hasIOExceptionCause) {
-            log.info("Error on getting remote info, trying again: " + e.getMessage());
+            log.info("Error on getting remote info, trying again: {}", e.getMessage());
             Thread.sleep(500);
           } else {
             throw e;