]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-7511 AbstractStoppableExecutorService produce warn logs 2023/head
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>
Thu, 4 May 2017 10:00:06 +0000 (12:00 +0200)
committerSébastien Lesaint <sebastien.lesaint@sonarsource.com>
Thu, 4 May 2017 11:58:35 +0000 (13:58 +0200)
rather than error logs

server/sonar-server/src/main/java/org/sonar/server/util/AbstractStoppableExecutorService.java

index f353b8a321ee947fe50a56b680a8d9dfb65470c2..5a926a55ca5d513cdd0a65a72774def71ed9fd6a 100644 (file)
@@ -54,11 +54,11 @@ public abstract class AbstractStoppableExecutorService<T extends ExecutorService
         delegate.shutdownNow();
         // Wait a while for tasks to respond to being canceled
         if (!delegate.awaitTermination(5, TimeUnit.SECONDS)) {
-          Loggers.get(getClass()).error(format("Pool %s did not terminate", getClass().getSimpleName()));
+          Loggers.get(getClass()).warn(format("Pool %s did not terminate", getClass().getSimpleName()));
         }
       }
     } catch (InterruptedException ie) {
-      Loggers.get(getClass()).error(format("Termination of pool %s failed", getClass().getSimpleName()), ie);
+      Loggers.get(getClass()).warn(format("Termination of pool %s failed", getClass().getSimpleName()), ie);
       // (Re-)Cancel if current thread also interrupted
       delegate.shutdownNow();
     }