diff --git a/rtsp/rtsp-session.go b/rtsp/rtsp-session.go index 21740873..09773c2b 100644 --- a/rtsp/rtsp-session.go +++ b/rtsp/rtsp-session.go @@ -368,6 +368,7 @@ func (session *Session) handleRequest(req *Request) { res := NewResponse(200, "OK", req.Header["CSeq"], session.ID, "") defer func() { if p := recover(); p != nil { + logger.Printf("handleRequest err ocurs:%v",p) res.StatusCode = 500 res.Status = fmt.Sprintf("Inner Server Error, %v", p) }