提交 118034af 编写于 作者: Y youyong205

modify the cat log

上级 4eb20042
......@@ -57,8 +57,6 @@ public class HeartbeatAnalyzer extends AbstractMessageAnalyzer<HeartbeatReport>
try {
info = com.dianping.cat.status.model.transform.DefaultSaxParser.parse(xml);
} catch (Exception e) {
m_logger.error("Error when parse status info in heartbeat analyzer." + xml, e);
Cat.getProducer().logEvent("HearbeatAnalyzer", "ErrorXml", "Error", xml);
return null;
}
......
......@@ -199,9 +199,7 @@ public class TcpSocketReceiver implements LogEnabled {
} catch (Throwable e) {
buf.resetReaderIndex();
String raw = buf.toString(0, buf.readableBytes(), Charset.forName("utf-8"));
m_logger.error("Error when handling message! Raw buffer: " + raw, e);
m_logger.error("Error when handling message!", e);
if (t != null) {
t.setStatus(e);
}
......@@ -295,7 +293,7 @@ public class TcpSocketReceiver implements LogEnabled {
}
public boolean isActive() {
return m_active;
}
return m_active;
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册