Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
Remove debug and trace logging statements
Richie McIlroy89bb3a12c2be
diff --git a/crates/rendering/src/decoder/avassetreader.rs b/crates/rendering/src/decoder/avassetreader.rsindex db6ea9d38..5b6a84189 100644--- a/crates/rendering/src/decoder/avassetreader.rs+++ b/crates/rendering/src/decoder/avassetreader.rs@@ -419,12 +419,6 @@ impl AVAssetReaderDecoder {let decoder_idx = best_id.min(self.decoders.len().saturating_sub(1));if needs_reset && decoder_idx < self.decoders.len() {- tracing::debug!(- decoder_idx = decoder_idx,- requested_time = requested_time,- distance = distance,- "Resetting decoder for seek"- );self.decoders[decoder_idx].reset(requested_time);self.pool_manager.update_decoder_position(best_id, self.decoders[decoder_idx].current_position());@@ -492,12 +486,6 @@ impl AVAssetReaderDecoder {match r {VideoDecoderMessage::GetFrame(requested_time, sender) => {let frame = (requested_time * fps as f32).floor() as u32;- debug!(- decoder = _name,- requested_time = requested_time,- frame = frame,- "GetFrame request received"- );if !sender.is_closed() {pending_requests.push(PendingRequest { frame, sender });}@@ -529,9 +517,7 @@ impl AVAssetReaderDecoder {if let Some(cached) = cache.get(&request.frame) {let data = cached.data().clone();let req = pending_requests.remove(i);- if req.sender.send(data.to_decoded_frame()).is_err() {- debug!("frame receiver dropped before send");- }+ if req.sender.send(data.to_decoded_frame()).is_err() {}*last_sent_frame.borrow_mut() = Some(data);} else {i += 1;@@ -623,24 +609,16 @@ impl AVAssetReaderDecoder {if req.frame == current_frame {let data = cache_frame.data().clone();*last_sent_frame.borrow_mut() = Some(data.clone());- if req.sender.send(data.to_decoded_frame()).is_err() {- debug!("frame receiver dropped before send");- }+ if req.sender.send(data.to_decoded_frame()).is_err() {}} else if req.frame < current_frame {if let Some(cached) = cache.get(&req.frame) {let data = cached.data().clone();*last_sent_frame.borrow_mut() = Some(data.clone());- if req.sender.send(data.to_decoded_frame()).is_err() {- debug!("frame receiver dropped before send");- }+ if req.sender.send(data.to_decoded_frame()).is_err() {}} else if is_scrubbing {let data = cache_frame.data().clone();*last_sent_frame.borrow_mut() = Some(data.clone());- if req.sender.send(data.to_decoded_frame()).is_err() {- debug!(- "frame receiver dropped before send (scrub fallback)"- );- }+ if req.sender.send(data.to_decoded_frame()).is_err() {}}} else {remaining_requests.push(req);@@ -669,42 +647,14 @@ impl AVAssetReaderDecoder {this.pool_manager.update_decoder_position(decoder_idx, pos);}- if !pending_requests.is_empty() {- debug!(- decoder = _name,- pending_count = pending_requests.len(),- frames_iterated = frames_iterated,- cache_size = cache.len(),- is_scrubbing = is_scrubbing,- "Handling unfulfilled requests after frame iteration"- );- }-for req in pending_requests.drain(..) {if let Some(cached) = cache.get(&req.frame) {let data = cached.data().clone();- if req.sender.send(data.to_decoded_frame()).is_err() {- debug!("frame receiver dropped before send");- }+ if req.sender.send(data.to_decoded_frame()).is_err() {}} else if let Some(last) = last_sent_frame.borrow().clone() {- debug!(- decoder = _name,- requested_frame = req.frame,- is_scrubbing = is_scrubbing,- "Sending last known frame as fallback"- );- if req.sender.send(last.to_decoded_frame()).is_err() {- debug!("frame receiver dropped before send");- }+ if req.sender.send(last.to_decoded_frame()).is_err() {}} else if let Some(first) = first_ever_frame.borrow().clone() {- debug!(- decoder = _name,- requested_frame = req.frame,- "Sending first ever frame as fallback"- );- if req.sender.send(first.to_decoded_frame()).is_err() {- debug!("frame receiver dropped before send");- }+ if req.sender.send(first.to_decoded_frame()).is_err() {}} else {debug!(decoder = _name,diff --git a/crates/rendering/src/decoder/multi_position.rs b/crates/rendering/src/decoder/multi_position.rsindex ce453a2ba..62edb596a 100644--- a/crates/rendering/src/decoder/multi_position.rs+++ b/crates/rendering/src/decoder/multi_position.rs@@ -219,15 +219,6 @@ impl ScrubDetector {self.last_request_time = now;self.last_frame = frame;- if was_scrubbing != self.is_scrubbing {- tracing::debug!(- is_scrubbing = self.is_scrubbing,- request_rate = self.request_rate,- frame_delta = frame_delta,- "Scrub state changed"- );- }-self.is_scrubbing}diff --git a/crates/rendering/src/layers/display.rs b/crates/rendering/src/layers/display.rsindex 90f9cc34d..bf797a9b9 100644--- a/crates/rendering/src/layers/display.rs+++ b/crates/rendering/src/layers/display.rs@@ -80,15 +80,6 @@ impl DisplayLayer {let format = segment_frames.screen_frame.format();let current_recording_time = segment_frames.recording_time;- tracing::trace!(- format = ?format,- actual_width,- actual_height,- frame_data_len = frame_data.len(),- recording_time = current_recording_time,- "DisplayLayer::prepare - frame info"- );-let skipped = self.last_recording_time.is_some_and(|last| (last - current_recording_time).abs() < 0.001);@@ -492,7 +483,6 @@ impl DisplayLayer {pub fn copy_to_texture(&mut self, encoder: &mut wgpu::CommandEncoder) {let Some(pending) = self.pending_copy.take() else {- tracing::trace!("copy_to_texture: no pending copy");return;};@@ -524,10 +514,6 @@ impl DisplayLayer {pub fn render(&self, pass: &mut wgpu::RenderPass<'_>) {if let Some(bind_group) = &self.bind_groups[self.current_texture] {- tracing::trace!(- current_texture_index = self.current_texture,- "DisplayLayer::render - rendering with bind group"- );pass.set_pipeline(&self.pipeline.render_pipeline);pass.set_bind_group(0, bind_group, &[]);pass.draw(0..3, 0..1);diff --git a/crates/rendering/src/lib.rs b/crates/rendering/src/lib.rsindex 84740ecd7..48f2b2088 100644--- a/crates/rendering/src/lib.rs+++ b/crates/rendering/src/lib.rs@@ -1780,12 +1780,6 @@ impl RendererLayers {}let should_render = uniforms.scene.should_render_screen();- tracing::trace!(- should_render_screen = should_render,- screen_opacity = uniforms.scene.screen_opacity,- screen_blur = uniforms.scene.screen_blur,- "RendererLayers::render - checking should_render_screen"- );if should_render {let mut pass = render_pass!(session.current_texture_view(), wgpu::LoadOp::Load);diff --git a/crates/video-decode/src/avassetreader.rs b/crates/video-decode/src/avassetreader.rsindex 696fa2628..5f322342e 100644--- a/crates/video-decode/src/avassetreader.rs+++ b/crates/video-decode/src/avassetreader.rs@@ -297,16 +297,6 @@ impl AVAssetReaderDecoder {self.current_position_secs = seek_time;- let elapsed = reset_start.elapsed();- tracing::info!(- requested_time = requested_time,- seek_time = seek_time,- keyframe_frame = ?keyframe_frame,- reset_ms = elapsed.as_millis(),- has_keyframe_index = self.keyframe_index.is_some(),- "AVAssetReader reset completed"- );-Ok(())}