Browse files

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.
  • Loading branch information...
1 parent bd817f9 commit 1b5e8d285b7c44011eae21ffbda576a04d02bf7d @clebertsuconic clebertsuconic committed Jun 10, 2010
Showing with 7 additions and 5 deletions.
  1. +7 −5 src/main/org/hornetq/utils/UTF8Util.java
View
12 src/main/org/hornetq/utils/UTF8Util.java
@@ -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 @@ public static void saveUTF(final HornetQBuffer out, final String str)
}
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 @@ public static String readUTF(final HornetQBuffer input)
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;

0 comments on commit 1b5e8d2

Please sign in to comment.