qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject [2/3] qpid-jms git commit: Reduce the verbosity of the shotdown logging.
Date Mon, 12 Jan 2015 21:46:46 GMT
Reduce the verbosity of the shotdown logging.  

Project: http://git-wip-us.apache.org/repos/asf/qpid-jms/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-jms/commit/d5970ca0
Tree: http://git-wip-us.apache.org/repos/asf/qpid-jms/tree/d5970ca0
Diff: http://git-wip-us.apache.org/repos/asf/qpid-jms/diff/d5970ca0

Branch: refs/heads/master
Commit: d5970ca073aba44df328de9ebb4b780e5628d4e9
Parents: 981c3ad
Author: Timothy Bish <tabish121@gmail.com>
Authored: Mon Jan 12 16:44:00 2015 -0500
Committer: Timothy Bish <tabish121@gmail.com>
Committed: Mon Jan 12 16:44:00 2015 -0500

----------------------------------------------------------------------
 .../main/java/org/apache/qpid/jms/util/ThreadPoolUtils.java  | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/d5970ca0/qpid-jms-client/src/main/java/org/apache/qpid/jms/util/ThreadPoolUtils.java
----------------------------------------------------------------------
diff --git a/qpid-jms-client/src/main/java/org/apache/qpid/jms/util/ThreadPoolUtils.java b/qpid-jms-client/src/main/java/org/apache/qpid/jms/util/ThreadPoolUtils.java
index 71ae92e..381b19f 100644
--- a/qpid-jms-client/src/main/java/org/apache/qpid/jms/util/ThreadPoolUtils.java
+++ b/qpid-jms-client/src/main/java/org/apache/qpid/jms/util/ThreadPoolUtils.java
@@ -59,10 +59,8 @@ public final class ThreadPoolUtils {
         if (!executorService.isShutdown()) {
             LOG.debug("Forcing shutdown of ExecutorService: {}", executorService);
             answer = executorService.shutdownNow();
-            if (LOG.isTraceEnabled()) {
-                LOG.trace("Shutdown of ExecutorService: {} is shutdown: {} and terminated:
{}.",
-                    new Object[] { executorService, executorService.isShutdown(), executorService.isTerminated()
});
-            }
+            LOG.trace("Shutdown of ExecutorService: {} is shutdown: {} and terminated: {}.",
+                new Object[] { executorService, executorService.isShutdown(), executorService.isTerminated()
});
         }
 
         return answer;
@@ -179,7 +177,7 @@ public final class ThreadPoolUtils {
             if (executorService.awaitTermination(interval, TimeUnit.MILLISECONDS)) {
                 done = true;
             } else {
-                LOG.info("Waited {} for ExecutorService: {} to terminate...", TimeUtils.printDuration(watch.taken()),
executorService);
+                LOG.debug("Waited {} for ExecutorService: {} to terminate...", TimeUtils.printDuration(watch.taken()),
executorService);
                 // recalculate interval
                 interval = Math.min(2000, shutdownAwaitTermination - watch.taken());
             }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org


Mime
View raw message