File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
solr/modules/extraction/src/java/org/apache/solr/handler/extraction Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -54,8 +54,10 @@ public void inform(SolrCore core) {
5454 try {
5555 // Fail if using old unsupported configuration
5656 if (initArgs .get ("tika.config" ) != null || initArgs .get ("parseContext.config" ) != null ) {
57- log .error (
58- "The 'tika.config' and 'parseContext.config' parameters are no longer supported since Solr 10." );
57+ if (log .isErrorEnabled ()) {
58+ log .error (
59+ "The 'tika.config' and 'parseContext.config' parameters are no longer supported since Solr 10." );
60+ }
5961 throw new SolrException (
6062 ErrorCode .SERVER_ERROR ,
6163 "The 'tika.config' and 'parseContext.config' parameters are no longer supported since Solr 10." );
@@ -83,9 +85,8 @@ public void inform(SolrCore core) {
8385 if (tikaServerUrl == null || tikaServerUrl .trim ().isEmpty ()) {
8486 if (log .isErrorEnabled ()) {
8587 log .error (
86- "Tika Server URL must be configured via '"
87- + ExtractingParams .TIKASERVER_URL
88- + "' parameter" );
88+ "Tika Server URL must be configured via '{}' parameter" ,
89+ ExtractingParams .TIKASERVER_URL );
8990 }
9091 throw new SolrException (
9192 ErrorCode .SERVER_ERROR ,
You can’t perform that action at this time.
0 commit comments