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:27:20 UTC
[solr] branch main updated: SOLR-15616: Fixing precommit
This is an automated email from the ASF dual-hosted git repository.
ishan 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 f2354b26c70 SOLR-15616: Fixing precommit
f2354b26c70 is described below
commit f2354b26c7008e78b5b0cdf5eebc07323c723530
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");