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/incubator-ratis.git
The following commit(s) were added to refs/heads/master by this push:
new 7d0ecb1 RATIS-1302. JvmPauseMonitor logs multi-line message (#410)
7d0ecb1 is described below
commit 7d0ecb19c692619a992cd7c07adb3d64fbde9ca0
Author: Doroszlai, Attila <[email protected]>
AuthorDate: Tue Feb 2 03:50:41 2021 +0100
RATIS-1302. JvmPauseMonitor logs multi-line message (#410)
---
ratis-common/src/main/java/org/apache/ratis/util/JvmPauseMonitor.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/ratis-common/src/main/java/org/apache/ratis/util/JvmPauseMonitor.java
b/ratis-common/src/main/java/org/apache/ratis/util/JvmPauseMonitor.java
index cd92297..aa89bde 100644
--- a/ratis-common/src/main/java/org/apache/ratis/util/JvmPauseMonitor.java
+++ b/ratis-common/src/main/java/org/apache/ratis/util/JvmPauseMonitor.java
@@ -65,7 +65,7 @@ public class JvmPauseMonitor {
static String toString(Map<String, GcInfo> beforeSleep, TimeDuration
extraSleepTime, Map<String, GcInfo> afterSleep) {
final StringBuilder b = new StringBuilder("Detected pause in JVM or host
machine (eg GC): pause of approximately ")
.append(extraSleepTime)
- .append(System.lineSeparator());
+ .append('.');
boolean detected = false;
for(Map.Entry<String, GcInfo> before: beforeSleep.entrySet()) {
@@ -82,7 +82,7 @@ public class JvmPauseMonitor {
}
if (!detected) {
- b.append(System.lineSeparator()).append("No GCs detected");
+ b.append(" No GCs detected.");
}
return b.toString();
}