Apache Solr open-source search software
Correct the log.error to include the file name instead of hard-coded … (#2186)
Hamzeh Aldmoura6b8fe43af49
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txtindex d97f7dcd346..b4b75870505 100644--- a/solr/CHANGES.txt+++ b/solr/CHANGES.txt@@ -134,6 +134,8 @@ Improvements* SOLR-16397: The MERGEINDEXES v2 endpoint has been updated to be more REST-ful.MERGEINDEXES is now available at `POST /api/cores/coreName/merge-indices` (Sanjay Dutt via Jason Gerlowski)+* PR#2186: Include the external file name in the log instead of the hard-coded value in FileFloatSource.java. (Hamzeh Aldmour via Uwe Schindler)+Optimizations---------------------* SOLR-17084: LBSolrClient (used by CloudSolrClient) now returns the count of core tracked as not live AKA zombiesdiff --git a/solr/core/src/java/org/apache/solr/search/function/FileFloatSource.java b/solr/core/src/java/org/apache/solr/search/function/FileFloatSource.javaindex b7628fde606..7664a822bcb 100644--- a/solr/core/src/java/org/apache/solr/search/function/FileFloatSource.java+++ b/solr/core/src/java/org/apache/solr/search/function/FileFloatSource.java@@ -307,7 +307,8 @@ public class FileFloatSource extends ValueSource {} catch (Exception e) {if (++otherErrors <= 10) {log.error(- "Error loading external value source + fileName + {}{}",+ "Error loading external value source: {} {}{}",+ fname,e,(otherErrors < 10 ? "" : "\tSkipping future errors for this file."));}