webrtc: show SDP answers in logs (#4862)

This commit is contained in:
Alessandro Ros 2025-08-12 14:11:42 +02:00 committed by GitHub
parent afff90f00e
commit 1a0f8e53f3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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.Header("Location", sessionLocation(publish, pathName, ctx.Request.URL.RawQuery, res.sx.secret))
ctx.Writer.WriteHeader(http.StatusCreated) ctx.Writer.WriteHeader(http.StatusCreated)
ctx.Writer.Write(res.answer) 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) { func (s *httpServer) onWHIPPatch(ctx *gin.Context, pathName string, rawSecret string) {