Skip to content

Commit 33e2cd4

Browse files
committed
Fix precommit
1 parent 955ce58 commit 33e2cd4

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

solr/modules/extraction/src/java/org/apache/solr/handler/extraction/ExtractingRequestHandler.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)