From e36e7fb4841abdfdbeddf0c49dcdcadaf7d1af1c Mon Sep 17 00:00:00 2001 From: chrislonng Date: Mon, 16 Jan 2017 16:58:57 +0800 Subject: [PATCH] refactor: change panic log level --- handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handler.go b/handler.go index 07ec04e..e1425bb 100644 --- a/handler.go +++ b/handler.go @@ -170,7 +170,7 @@ func (hs *handlerService) processPacket(a *agent, p *packet.Packet) { func (hs *handlerService) processMessage(session *session.Session, msg *message.Message) { defer func() { if err := recover(); err != nil { - log.Errorf("processMessage Error: %+v", err) + log.Tracef("processMessage Error: %+v", err) } }()