Do one compare in the common case, united nearly identical log lines.

git-svn-id: https://samskivert.googlecode.com/svn/trunk@1665 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
ray
2005-06-24 20:41:45 +00:00
parent 22e8bb860b
commit cf3152e2ce
@@ -183,12 +183,10 @@ public class Invoker extends LoopingThread
recordMetrics(key, duration);
// report long runners
if (duration > 5000L) {
Log.warning("Really long invoker unit [unit=" + unit +
" (" + key + "), time=" + duration + "ms].");
} else if (duration > 500L) {
Log.info("Long invoker unit [unit=" + unit +
" (" + key + "), time=" + duration + "ms].");
if (duration > 500L) {
Log.warning(((duration >= 5000L) ? "Really long" : "Long") +
" invoker unit [unit=" + unit +
" (" + key + "), time=" + duration + "ms].");
}
}
}