You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@solr.apache.org by is...@apache.org on 2023/01/23 14:29:02 UTC

[solr] branch branch_9x updated: SOLR-15616: Fixing precommit

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

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


The following commit(s) were added to refs/heads/branch_9x by this push:
     new fd50b70485f SOLR-15616: Fixing precommit
fd50b70485f is described below

commit fd50b70485f5848f0afc27a08b582eab73d7b404
Author: Ishan Chattopadhyaya <is...@apache.org>
AuthorDate: Mon Jan 23 19:51:06 2023 +0530

    SOLR-15616: Fixing precommit
---
 solr/core/src/java/org/apache/solr/servlet/CoreContainerProvider.java | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/solr/core/src/java/org/apache/solr/servlet/CoreContainerProvider.java b/solr/core/src/java/org/apache/solr/servlet/CoreContainerProvider.java
index 1dc0a9dce6f..99458db9e50 100644
--- a/solr/core/src/java/org/apache/solr/servlet/CoreContainerProvider.java
+++ b/solr/core/src/java/org/apache/solr/servlet/CoreContainerProvider.java
@@ -430,7 +430,9 @@ public class CoreContainerProvider implements ServletContextListener {
           registryName, new MemoryUsageGaugeSet(), ResolutionStrategy.IGNORE, "memory");
 
       if (config.getCacheConfig() != null && config.getCacheConfig().threadsIntervalSeconds != null) {
-         log.info("Threads metrics will be cached for " + config.getCacheConfig().threadsIntervalSeconds + " seconds");
+         if (log.isInfoEnabled()) {
+           log.info("Threads metrics will be cached for {} seconds", config.getCacheConfig().threadsIntervalSeconds);
+         }
          metricManager.registerAll(registryName, new CachedThreadStatesGaugeSet(config.getCacheConfig().threadsIntervalSeconds, TimeUnit.SECONDS), SolrMetricManager.ResolutionStrategy.IGNORE, "threads");
       } else {
          metricManager.registerAll(registryName, new ThreadStatesGaugeSet(), SolrMetricManager.ResolutionStrategy.IGNORE, "threads");