Selaa lähdekoodia

#2792 improve log messages

Shinsuke Sugaya 1 vuosi sitten
vanhempi
commit
b563683818
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      src/main/java/org/codelibs/fess/helper/SystemHelper.java

+ 2 - 2
src/main/java/org/codelibs/fess/helper/SystemHelper.java

@@ -615,7 +615,7 @@ public class SystemHelper {
             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);
@@ -632,7 +632,7 @@ public class SystemHelper {
         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();