[hornetq-commits] JBoss hornetq SVN: r9305 - trunk/src/main/org/hornetq/utils.
do-not-reply at jboss.org
do-not-reply at jboss.org
Thu Jun 10 13:06:08 EDT 2010
Author: clebert.suconic at jboss.com
Date: 2010-06-10 13:06:08 -0400 (Thu, 10 Jun 2010)
New Revision: 9305
Modified:
trunk/src/main/org/hornetq/utils/UTF8Util.java
Log:
I have seen too many of these messages (changed on the commit) on the Application server's log on the AS testsuite. I'm changing those to trace since they are too verbose there.
Modified: trunk/src/main/org/hornetq/utils/UTF8Util.java
===================================================================
--- trunk/src/main/org/hornetq/utils/UTF8Util.java 2010-06-09 22:24:21 UTC (rev 9304)
+++ trunk/src/main/org/hornetq/utils/UTF8Util.java 2010-06-10 17:06:08 UTC (rev 9305)
@@ -36,7 +36,7 @@
private static final Logger log = Logger.getLogger(UTF8Util.class);
- private static final boolean isDebug = UTF8Util.log.isDebugEnabled();
+ private static final boolean isTrace = UTF8Util.log.isTraceEnabled();
private static ThreadLocal<SoftReference<StringUtilBuffer>> currenBuffer = new ThreadLocal<SoftReference<StringUtilBuffer>>();
@@ -73,9 +73,10 @@
}
else
{
- if (UTF8Util.isDebug)
+ if (UTF8Util.isTrace)
{
- UTF8Util.log.debug("Saving string with utfSize=" + len + " stringSize=" + str.length());
+ // This message is too verbose for debug, that's why we are using trace here
+ UTF8Util.log.trace("Saving string with utfSize=" + len + " stringSize=" + str.length());
}
int stringLength = str.length();
@@ -122,9 +123,10 @@
buffer.resizeCharBuffer(size);
}
- if (UTF8Util.isDebug)
+ if (UTF8Util.isTrace)
{
- UTF8Util.log.debug("Reading string with utfSize=" + size);
+ // This message is too verbose for debug, that's why we are using trace here
+ UTF8Util.log.trace("Reading string with utfSize=" + size);
}
int count = 0;
More information about the hornetq-commits
mailing list