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

ctubbsii pushed a commit to branch 2.1
in repository https://gitbox.apache.org/repos/asf/accumulo.git


The following commit(s) were added to refs/heads/2.1 by this push:
     new 96888ee01f Trivial log formatString fix
96888ee01f is described below

commit 96888ee01fc3894959278f7ac2b7826e40229632
Author: Christopher Tubbs <ctubb...@apache.org>
AuthorDate: Wed May 28 14:34:43 2025 -0400

    Trivial log formatString fix
    
    Prevent the error message from being interpreted as a format string in
    Halt.java
---
 core/src/main/java/org/apache/accumulo/core/util/Halt.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/core/src/main/java/org/apache/accumulo/core/util/Halt.java 
b/core/src/main/java/org/apache/accumulo/core/util/Halt.java
index 1b10b92f16..1a9eb73fbf 100644
--- a/core/src/main/java/org/apache/accumulo/core/util/Halt.java
+++ b/core/src/main/java/org/apache/accumulo/core/util/Halt.java
@@ -60,9 +60,9 @@ public class Halt {
       System.err.flush();
 
       if (exception != null) {
-        log.error(errorMessage, exception);
+        log.error("{}", errorMessage, exception);
       } else {
-        log.error(errorMessage);
+        log.error("{}", errorMessage);
       }
 
       if (runnable != null) {

Reply via email to