reduce message to info when iteration takes > 100ms from warn

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@775990 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary Tully 2009-05-18 15:33:56 +00:00
parent 7310949981
commit bb153aeb12
1 changed files with 2 additions and 2 deletions

View File

@ -476,7 +476,7 @@ public class MessageDatabase {
}
long end = System.currentTimeMillis();
if( end-start > 100 ) {
LOG.warn("KahaDB Cleanup took "+(end-start));
LOG.info("KahaDB Cleanup took "+(end-start));
}
} catch (IOException e) {
e.printStackTrace();
@ -522,7 +522,7 @@ public class MessageDatabase {
process(data, location);
long end = System.currentTimeMillis();
if( end-start > 100 ) {
LOG.warn("KahaDB long enqueue time: Journal Add Took: "+(start2-start)+" ms, Index Update took "+(end-start2)+" ms");
LOG.info("KahaDB long enqueue time: Journal Add Took: "+(start2-start)+" ms, Index Update took "+(end-start2)+" ms");
}
synchronized (indexMutex) {