From 7cf47287b8ec07ab77d3c09aec55e20be91d51c2 Mon Sep 17 00:00:00 2001 From: Bruce Snyder Date: Mon, 29 Jun 2009 16:29:37 +0000 Subject: [PATCH] Slight enhancements in logging for AMQ-2158 git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@789378 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/java/org/apache/activemq/usage/Usage.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/activemq-core/src/main/java/org/apache/activemq/usage/Usage.java b/activemq-core/src/main/java/org/apache/activemq/usage/Usage.java index f006f16954..0493c2b156 100755 --- a/activemq-core/src/main/java/org/apache/activemq/usage/Usage.java +++ b/activemq-core/src/main/java/org/apache/activemq/usage/Usage.java @@ -239,7 +239,8 @@ public abstract class Usage implements Service { private void fireEvent(final int oldPercentUsage, final int newPercentUsage) { if (debug) { - LOG.debug("Memory usage change. from: " + oldPercentUsage + ", to: " + newPercentUsage); + LOG.debug("Memory usage change from: " + oldPercentUsage + "% of available memory, to: " + + newPercentUsage + "% of available memory"); } if (newPercentUsage >= 80) { LOG.warn("Memory usage is now over 80%!"); @@ -271,7 +272,7 @@ public abstract class Usage implements Service { if (started.get()) { getExecutor().execute(listenerNotifier); } else { - LOG.warn("not notifying usage change to listeners on shutdown"); + LOG.warn("Not notifying memory usage change to listeners on shutdown"); } } }