webrtc: show SDP answers in logs (#4862)
This commit is contained in:
@@ -229,6 +229,8 @@ func (s *httpServer) onWHIPPost(ctx *gin.Context, pathName string, publish bool)
|
||||
ctx.Header("Location", sessionLocation(publish, pathName, ctx.Request.URL.RawQuery, res.sx.secret))
|
||||
ctx.Writer.WriteHeader(http.StatusCreated)
|
||||
ctx.Writer.Write(res.answer)
|
||||
|
||||
res.sx.Log(logger.Debug, "SDP answer:\n"+string(res.answer))
|
||||
}
|
||||
|
||||
func (s *httpServer) onWHIPPatch(ctx *gin.Context, pathName string, rawSecret string) {
|
||||
|
||||
Reference in New Issue
Block a user