Skip to content

Commit

Permalink
#2792 improve log messages
Browse files Browse the repository at this point in the history
  • Loading branch information
marevol committed Jan 27, 2024
1 parent 38108ad commit 08efca0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/codelibs/fess/helper/SystemHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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();
Expand Down

0 comments on commit 08efca0

Please # to comment.