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

szetszwo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ratis.git


The following commit(s) were added to refs/heads/master by this push:
     new 3babac349 RATIS-2287. Improve RaftServerImpl#toString() to make it 
more readable (#1253)
3babac349 is described below

commit 3babac349827d7912c4058183c310fde2d32ff54
Author: jianghuazhu <740087...@qq.com>
AuthorDate: Wed May 7 23:17:12 2025 +0800

    RATIS-2287. Improve RaftServerImpl#toString() to make it more readable 
(#1253)
---
 .../src/main/java/org/apache/ratis/server/impl/RaftServerImpl.java      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/ratis-server/src/main/java/org/apache/ratis/server/impl/RaftServerImpl.java 
b/ratis-server/src/main/java/org/apache/ratis/server/impl/RaftServerImpl.java
index a3652f497..7c016752e 100644
--- 
a/ratis-server/src/main/java/org/apache/ratis/server/impl/RaftServerImpl.java
+++ 
b/ratis-server/src/main/java/org/apache/ratis/server/impl/RaftServerImpl.java
@@ -727,7 +727,7 @@ class RaftServerImpl implements RaftServer.Division,
 
   @Override
   public String toString() {
-    return role + " " + state + " " + lifeCycle.getCurrentState();
+    return role + " (" + lifeCycle.getCurrentState() + "): " + state;
   }
 
   RaftClientReply.Builder newReplyBuilder(RaftClientRequest request) {

Reply via email to