From 08efca08a0668d95eef36315c901b44dabc17f6b Mon Sep 17 00:00:00 2001 From: Shinsuke Sugaya Date: Sat, 27 Jan 2024 11:12:50 +0900 Subject: [PATCH] #2792 improve log messages --- src/main/java/org/codelibs/fess/helper/SystemHelper.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/codelibs/fess/helper/SystemHelper.java b/src/main/java/org/codelibs/fess/helper/SystemHelper.java index c6912e083..64fab2641 100644 --- a/src/main/java/org/codelibs/fess/helper/SystemHelper.java +++ b/src/main/java/org/codelibs/fess/helper/SystemHelper.java @@ -616,7 +616,7 @@ public void calibrateCpuLoad() { waitingThreadNames.add(threadName); while (current >= percent) { if (logger.isInfoEnabled()) { - logger.info("Cpu Load {}% is greater than {}%. {} threads are waiting.", current, percent, waitingThreadNames.size()); + logger.info("Cpu Load {}% is greater than {}%. {} waiting thread(s).", current, percent, waitingThreadNames.size()); } if (logger.isDebugEnabled()) { logger.debug("Waiting threads: {}", waitingThreadNames); @@ -633,7 +633,7 @@ public void waitForNoWaitingThreads() { int count = waitingThreadNames.size(); while (count > 0) { if (logger.isInfoEnabled()) { - logger.info("{} threads are waiting.", count); + logger.info("{} waiting thread(s).", count); } ThreadUtil.sleep(systemCpuCheckInterval); count = waitingThreadNames.size();