Cat only process ERROR at most time
@@ -15,12 +15,11 @@ import com.dianping.cat.message.Trace;
public class CatAppender extends AppenderSkeleton {
@Override
protected void append(LoggingEvent event) {
- boolean isTraceMode = Cat.getManager().isTraceMode();
Level level = event.getLevel();
if (level.isGreaterOrEqual(Level.ERROR)) {
logError(event);
- } else if (isTraceMode) {
+ } else if (Cat.getManager().isTraceMode()) {
logTrace(event);
}
}
