Skip to content

Commit

Permalink
src: lib: stream: sink: Fix log-related details
Browse files Browse the repository at this point in the history
  • Loading branch information
joaoantoniocardoso committed Nov 3, 2024
1 parent 804e37f commit f02c491
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lib/stream/sink/webrtc_sink.rs
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ impl WebRTCSink {
}
}

#[instrument(level = "debug", skip(self))]
#[instrument(level = "debug", skip(self, sdp))]
pub fn handle_sdp(&self, sdp: &gst_webrtc::WebRTCSessionDescription) -> Result<()> {
self.downgrade().handle_sdp(&self.webrtcbin, sdp)
}
Expand Down Expand Up @@ -557,7 +557,7 @@ impl WebRTCBinInterface for WebRTCSinkWeakProxy {

// Once webrtcbin has create the offer SDP for us, handle it by sending it to the peer via the
// WebSocket connection
#[instrument(level = "debug", skip(self, webrtcbin))]
#[instrument(level = "debug", skip_all)]
fn on_offer_created(
&self,
webrtcbin: &gst::Element,
Expand All @@ -570,7 +570,7 @@ impl WebRTCBinInterface for WebRTCSinkWeakProxy {
);

let Ok(sdp) = offer.sdp().as_text() else {
return Err(anyhow!("Failed reading the received SDP"));
return Err(anyhow!("Failed reading the created SDP"));
};

// All good, then set local description
Expand Down Expand Up @@ -607,7 +607,7 @@ impl WebRTCBinInterface for WebRTCSinkWeakProxy {
);

let Ok(sdp) = answer.sdp().as_text() else {
return Err(anyhow!("Failed reading the received SDP"));
return Err(anyhow!("Failed reading the answer SDP"));
};

debug!("Sending SDP answer to peer. Answer:\n{sdp}");
Expand Down

0 comments on commit f02c491

Please sign in to comment.