You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@solr.apache.org by kr...@apache.org on 2022/10/16 23:20:10 UTC

[solr] branch main updated: SOLR-8803: Fix ErrorFile log message

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

krisden 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 0ec5f0f0488 SOLR-8803: Fix ErrorFile log message
0ec5f0f0488 is described below

commit 0ec5f0f0488f7efcee7bcf825ffb0493115c908d
Author: Kevin Risden <kr...@apache.org>
AuthorDate: Sun Oct 16 19:09:18 2022 -0400

    SOLR-8803: Fix ErrorFile log message
---
 .../java/org/apache/solr/servlet/CoreContainerProvider.java    | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

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 208c948ee12..a32df7dee39 100644
--- a/solr/core/src/java/org/apache/solr/servlet/CoreContainerProvider.java
+++ b/solr/core/src/java/org/apache/solr/servlet/CoreContainerProvider.java
@@ -300,18 +300,18 @@ public class CoreContainerProvider implements ServletContextListener {
             errorFileArg
                 .substring(errorFileArg.indexOf('=') + 1)
                 .replace("%p", String.valueOf(mx.getPid()));
-        log.info(
+        String logMessage =
             "Solr started with \"-XX:+CrashOnOutOfMemoryError\" that will crash on any OutOfMemoryError exception. "
-                + "The cause of the OOME will be logged in the crash file at the following path:");
-        log.info(errorFilePath);
+                + "The cause of the OOME will be logged in the crash file at the following path: {}";
+        log.info(logMessage, errorFilePath);
       }
     } catch (Exception e) {
       String logMessage =
           String.format(
               Locale.ROOT,
               "Solr typically starts with \"-XX:+CrashOnOutOfMemoryError\" that will crash on any OutOfMemoryError exception. "
-                  + "The cause of the OOME will be logged in a crash file in the logs directory %s. "
-                  + "Unable to get the specific file due to an exception.",
+                  + "Unable to get the specific file due to an exception."
+                  + "The cause of the OOME will be logged in a crash file in the logs directory: %s",
               System.getProperty("solr.log.dir"));
       log.info(logMessage, e);
     }