Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
remove tracing
PJ8b1434c754a9
diff --git a/Cargo.lock b/Cargo.lockindex 833b1947a..f027322ea 100644--- a/Cargo.lock+++ b/Cargo.lock@@ -260,17 +260,6 @@ dependencies = ["pin-project-lite",]-[[package]]-name = "async-net"-version = "2.0.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "b948000fad4873c1c9339d60f2623323a0cfd3816e5181033c6a5cb68b2accf7"-dependencies = [- "async-io",- "blocking",- "futures-lite",-]-[[package]]name = "async-process"version = "2.2.4"@@ -725,21 +714,17 @@ dependencies = ["core-foundation 0.10.0","core-graphics 0.24.0","cpal",- "ctrlc","ffmpeg-next","ffmpeg-sys-next","flume 0.11.0","indexmap 2.5.0","nokhwa 0.10.3 (git+https://github.com/Brendonovich/nokhwa?rev=2de5a760d5f1)","nokhwa-bindings-macos 0.2.0 (git+https://github.com/Brendonovich/nokhwa?rev=2de5a760d5f1)",- "scap 0.0.5",+ "scap 0.0.5 (git+https://github.com/filleduchaos/scap?rev=8eb00ce1b9bcf)","serde",- "smol","specta","tempfile","thiserror",- "tracing",- "tracing-subscriber",][[package]]@@ -1369,16 +1354,6 @@ dependencies = ["syn 2.0.75",]-[[package]]-name = "ctrlc"-version = "3.4.5"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "90eeab0aa92f3f9b4e87f258c72b139c207d251f9cbc1080a0086b86a8870dd3"-dependencies = [- "nix 0.29.0",- "windows-sys 0.59.0",-]-[[package]]name = "d3d12"version = "22.0.0"@@ -1555,7 +1530,6 @@ dependencies = ["tempfile","tokio","tracing",- "tracing-subscriber","uuid","wgpu",]@@ -5272,6 +5246,7 @@ dependencies = [[[package]]name = "scap"version = "0.0.5"+source = "git+https://github.com/CapSoftware/scap?rev=691bd88798d3#691bd88798d39478e09afb04d460e113097bb855"dependencies = ["cocoa 0.25.0","core-graphics-helmer-fork",@@ -5290,7 +5265,7 @@ dependencies = [[[package]]name = "scap"version = "0.0.5"-source = "git+https://github.com/CapSoftware/scap?rev=691bd88798d3#691bd88798d39478e09afb04d460e113097bb855"+source = "git+https://github.com/filleduchaos/scap?rev=8eb00ce1b9bcf#8eb00ce1b9bcfa22d38f7c2857539f2c5139dfe3"dependencies = ["cocoa 0.25.0","core-graphics-helmer-fork",@@ -5687,23 +5662,6 @@ version = "1.13.2"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "3c5e1a9a646d36c3599cd173a41282daf47c44583ad367b8e6837255952e5c67"-[[package]]-name = "smol"-version = "2.0.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "a33bd3e260892199c3ccfc487c88b2da2265080acb316cd920da72fdfd7c599f"-dependencies = [- "async-channel",- "async-executor",- "async-fs",- "async-io",- "async-lock",- "async-net",- "async-process",- "blocking",- "futures-lite",-]-[[package]]name = "socket2"version = "0.5.7"diff --git a/apps/desktop/src-tauri/Cargo.toml b/apps/desktop/src-tauri/Cargo.tomlindex 9e488b905..c7493d01a 100644--- a/apps/desktop/src-tauri/Cargo.toml+++ b/apps/desktop/src-tauri/Cargo.toml@@ -79,7 +79,6 @@ cap-media = { path = "../../../crates/media" }reqwest = { version = "0.12.7", features = ["json", "stream", "multipart"] }dotenvy_macro = "0.15.7"global-hotkey = "0.5.5"-tracing-subscriber = "0.3"[target.'cfg(target_os = "macos")'.dependencies]core-graphics = "0.24.0"diff --git a/apps/desktop/src-tauri/src/main.rs b/apps/desktop/src-tauri/src/main.rsindex 89e3e6946..6d742f68d 100644--- a/apps/desktop/src-tauri/src/main.rs+++ b/apps/desktop/src-tauri/src/main.rs@@ -3,7 +3,5 @@#[tokio::main]async fn main() {- tracing_subscriber::fmt::init();-desktop_solid_lib::run().await}diff --git a/crates/media/Cargo.toml b/crates/media/Cargo.tomlindex 5881d8071..d3eec257f 100644--- a/crates/media/Cargo.toml+++ b/crates/media/Cargo.toml@@ -17,20 +17,14 @@ nokhwa = { git = "https://github.com/Brendonovich/nokhwa", rev = "2de5a760d5f1","input-avfoundation","serialize",] }-scap = { path = "../../../scap" }-# scap = { git = "https://github.com/CapSoftware/scap", rev = "691bd88798d3" }+scap = { git = "https://github.com/filleduchaos/scap", rev = "8eb00ce1b9bcf" }serde = { version = "1", features = ["derive"] }specta = "=2.0.0-rc.19"tempfile = "3.12.0"thiserror = "1.0"-tracing = "0.1"+# tracing = "0.1"[target.'cfg(target_os = "macos")'.dependencies]core-graphics = "0.24.0"core-foundation = "0.10.0"nokhwa-bindings-macos = { git = "https://github.com/Brendonovich/nokhwa", rev = "2de5a760d5f1" }--[dev-dependencies]-ctrlc = "3.4"-smol = "2.0"-tracing-subscriber = "0.3"diff --git a/crates/media/src/encoders/h264.rs b/crates/media/src/encoders/h264.rsindex 6812812b1..4dd992099 100644--- a/crates/media/src/encoders/h264.rs+++ b/crates/media/src/encoders/h264.rs@@ -89,7 +89,7 @@ impl PipelineSinkTask for H264Encoder {ready_signal: crate::pipeline::task::PipelineReadySignal,input: flume::Receiver<Self::Input>,) {- tracing::info!("Starting {} video encoding thread", self.tag);+ println!("Starting {} video encoding thread", self.tag);ready_signal.send(Ok(())).unwrap();while let Ok(frame) = input.recv() {@@ -97,10 +97,10 @@ impl PipelineSinkTask for H264Encoder {self.process_frame();}- tracing::info!("Received last {} frame. Finishing up encoding.", self.tag);+ println!("Received last {} frame. Finishing up encoding.", self.tag);self.finish();- tracing::info!("Shutting down {} video encoding thread", self.tag);+ println!("Shutting down {} video encoding thread", self.tag);}}diff --git a/crates/media/src/encoders/mp3.rs b/crates/media/src/encoders/mp3.rsindex fcbef2324..356b07726 100644--- a/crates/media/src/encoders/mp3.rs+++ b/crates/media/src/encoders/mp3.rs@@ -31,7 +31,7 @@ impl MP3Encoder {Output::File(path) => path,};let mut output_ctx = format::output(&destination)?;- tracing::info!("Sample format: {:#?}", config.sample_format);+ println!("Sample format: {:#?}", config.sample_format);let codec = encoder::find(ffmpeg::codec::Id::MP3).ok_or(MediaError::TaskLaunch("Could not find MP3 codec".into()))?;@@ -127,16 +127,16 @@ impl PipelineSinkTask for MP3Encoder {ready_signal: crate::pipeline::task::PipelineReadySignal,input: flume::Receiver<Self::Input>,) {- tracing::info!("Starting {} audio encoding thread", self.tag);+ println!("Starting {} audio encoding thread", self.tag);ready_signal.send(Ok(())).unwrap();while let Ok(frame) = input.recv() {self.queue_frame(frame);}- tracing::info!("Received last {} sample. Finishing up encoding.", self.tag);+ println!("Received last {} sample. Finishing up encoding.", self.tag);self.finish();- tracing::info!("Shutting down {} audio encoding thread", self.tag);+ println!("Shutting down {} audio encoding thread", self.tag);}}diff --git a/crates/media/src/feeds/camera.rs b/crates/media/src/feeds/camera.rsindex 18b9ae046..cda24cb9c 100644--- a/crates/media/src/feeds/camera.rs+++ b/crates/media/src/feeds/camera.rs@@ -58,7 +58,7 @@ impl CameraFeed {selected_camera: &String,rgba_data: Sender<Vec<u8>>,) -> Result<CameraFeed, MediaError> {- tracing::debug!("Selected camera: {:?}", selected_camera);+ println!("Selected camera: {:?}", selected_camera);let camera_info = find_camera(&selected_camera)?;let (control, control_receiver) = flume::bounded(1);@@ -174,7 +174,7 @@ async fn start_capturing(Ok((video_info, join_handle))}-#[tracing::instrument(skip_all)]+// #[tracing::instrument(skip_all)]fn run_camera_feed(camera_info: CameraInfo,control: Receiver<CameraControl>,@@ -199,34 +199,34 @@ fn run_camera_feed(}ready_signal.send(Ok(converter.video_info)).unwrap();- tracing::info!("Launched camera feed");+ println!("Launched camera feed");loop {match control.try_recv() {Err(TryRecvError::Disconnected) => {- tracing::info!("Control receiver is unreachable! Shutting down");+ println!("Control receiver is unreachable! Shutting down");break;}Err(TryRecvError::Empty) => {// No signal received, nothing to do}Ok(CameraControl::Shutdown) => {- tracing::info!("Shutdown request received.");+ println!("Shutdown request received.");break;}Ok(CameraControl::AttachRawConsumer(rgba_sender)) => {- tracing::warn!("Attaching to a new pipeline consumer. Any previously attached consumer will be dropped");+ eprintln!("Attaching to a new pipeline consumer. Any previously attached consumer will be dropped");maybe_raw_data = Some(rgba_sender);}Ok(CameraControl::Switch(camera_name, switch_result)) => {if maybe_raw_data.is_some() {switch_result.send(Err(MediaError::Any("Cannot switch cameras while the feed is attached to a running pipeline"))).unwrap();} else {- tracing::info!("Switching camera to {camera_name}");+ println!("Switching camera to {camera_name}");match find_and_create_camera(&camera_name) {Err(error) => {- tracing::error!("{error}");+ eprintln!("{error}");switch_result.send(Err(error)).unwrap();}Ok((new_info, mut new_camera)) => {@@ -234,7 +234,7 @@ fn run_camera_feed(let new_converter = FrameConverter::build(new_format);if new_camera.open_stream().is_ok() {- tracing::info!("Now using {camera_name}");+ println!("Now using {camera_name}");let _ = camera.stop_stream();switch_result.send(Ok((new_info, new_converter.video_info)))@@ -242,7 +242,7 @@ fn run_camera_feed(camera = new_camera;converter = new_converter;} else {- tracing::warn!(+ eprintln!("Unable to switch to {camera_name}. Still using previous camera");switch_result@@ -264,7 +264,7 @@ fn run_camera_feed(if dropping_send(&rgba_data, rgba_frame).is_err() {// TODO: Also allow changing the connection?- tracing::error!("Camera preview has been disconnected. Shutting down feed");+ eprintln!("Camera preview has been disconnected. Shutting down feed");break;}@@ -274,14 +274,14 @@ fn run_camera_feed(captured_at,};if dropping_send(raw_data, frame).is_err() {- tracing::warn!("Raw data consumer has been disconnected.");+ eprintln!("Raw data consumer has been disconnected.");maybe_raw_data = None;}}}let _ = camera.stop_stream();- tracing::info!("Closed {} stream", camera.info().human_name());+ println!("Closed {} stream", camera.info().human_name());}struct FrameConverter {@@ -343,7 +343,7 @@ impl FrameConverter {fn dropping_send<T>(sender: &Sender<T>, value: T) -> Result<(), flume::SendError<T>> {sender.try_send(value).or_else(|error| match error {flume::TrySendError::Full(_) => {- tracing::warn!("Channel is full. Dropping camera frame");+ // tracing::debug!("Channel is full. Dropping camera frame");Ok(())}flume::TrySendError::Disconnected(v) => Err(flume::SendError(v)),diff --git a/crates/media/src/filters/audio.rs b/crates/media/src/filters/audio.rsindex 81175b98f..8e2c0d43b 100644--- a/crates/media/src/filters/audio.rs+++ b/crates/media/src/filters/audio.rs@@ -79,7 +79,7 @@ impl PipelinePipeTask for AudioFilter {input: Receiver<Self::Input>,output: Sender<Self::Output>,) {- tracing::info!("Starting {} audio filtering thread", self.tag);+ println!("Starting {} audio filtering thread", self.tag);ready_signal.send(Ok(())).unwrap();while let Ok(raw_frame) = input.recv() {@@ -87,12 +87,12 @@ impl PipelinePipeTask for AudioFilter {self.process_frame(&output);}- tracing::info!(+ println!("Received last raw {} sample. Finishing up filtering.",self.tag);self.finish(&output);- tracing::info!("Shutting down {} audio filtering thread", self.tag);+ println!("Shutting down {} audio filtering thread", self.tag);}}diff --git a/crates/media/src/filters/video.rs b/crates/media/src/filters/video.rsindex 5789a893a..e7fea5071 100644--- a/crates/media/src/filters/video.rs+++ b/crates/media/src/filters/video.rs@@ -101,7 +101,7 @@ impl PipelinePipeTask for VideoFilter {input: flume::Receiver<Self::Input>,output: Sender<Self::Output>,) {- tracing::info!("Starting {} video filtering thread", self.tag);+ println!("Starting {} video filtering thread", self.tag);ready_signal.send(Ok(())).unwrap();while let Ok(raw_frame) = input.recv() {@@ -109,12 +109,12 @@ impl PipelinePipeTask for VideoFilter {self.process_frame(&output);}- tracing::info!(+ println!("Received last raw {} frame. Finishing up filtering.",self.tag);self.finish(&output);- tracing::info!("Shutting down {} video filtering thread", self.tag);+ println!("Shutting down {} video filtering thread", self.tag);}}diff --git a/crates/media/src/pipeline/control.rs b/crates/media/src/pipeline/control.rsindex 411ba9e8b..05a7dd28a 100644--- a/crates/media/src/pipeline/control.rs+++ b/crates/media/src/pipeline/control.rs@@ -22,7 +22,7 @@ impl PipelineControlSignal {// Only peek for a new signal, else relinquish control to the callermatch self.receiver.try_recv() {Ok(control) => {- tracing::info!("Received new signal: {control:?}");+ println!("Received new signal: {control:?}");self.last_value = Some(control)}Err(TryRecvError::Empty) => {}@@ -40,7 +40,7 @@ impl PipelineControlSignal {}pub fn blocking_last(&mut self) -> Option<Control> {- tracing::info!("Waiting for play signal...");+ println!("Waiting for play signal...");self.last_value = self.receiver.recv().ok();self.last_value@@ -68,13 +68,13 @@ impl ControlBroadcast {let mut any_dropped = false;if self.listeners.is_empty() {- tracing::warn!("Attempting to broadcast value without any listeners");+ eprintln!("Attempting to broadcast value without any listeners");}for (name, listener) in self.listeners.iter() {- tracing::info!("Sending signal {value:?} to {name}");+ println!("Sending signal {value:?} to {name}");if let Err(_) = listener.send_async(value).await {- tracing::warn!("{name} is unreachable!");+ eprintln!("{name} is unreachable!");any_dropped = true;}}diff --git a/crates/media/src/pipeline/mod.rs b/crates/media/src/pipeline/mod.rsindex 458f3d04c..685aa6af1 100644--- a/crates/media/src/pipeline/mod.rs+++ b/crates/media/src/pipeline/mod.rs@@ -29,7 +29,7 @@ impl<T: PipelineClock> Pipeline<T> {return Err(MediaError::ShutdownPipeline);};- tracing::info!("Starting pipeline execution");+ println!("Starting pipeline execution");self.clock.start();self.control.broadcast(Control::Play).await}@@ -39,7 +39,7 @@ impl<T: PipelineClock> Pipeline<T> {return Err(MediaError::ShutdownPipeline);};- tracing::info!("Pausing pipeline execution");+ println!("Pausing pipeline execution");self.clock.stop();self.control.broadcast(Control::Pause).await}@@ -49,12 +49,12 @@ impl<T: PipelineClock> Pipeline<T> {return Err(MediaError::ShutdownPipeline);};- tracing::info!("Shutting down pipeline execution");+ println!("Shutting down pipeline execution");let _ = self.control.broadcast(Control::Shutdown).await;for (_name, task) in self.task_handles.drain(..) {let _ = task.join();}- tracing::info!("Pipeline has been stopped.");+ println!("Pipeline has been stopped.");// TODO: Collect shutdown errors?Ok(())}diff --git a/crates/media/src/sources/audio_input.rs b/crates/media/src/sources/audio_input.rsindex 39e5d80a2..988ede587 100644--- a/crates/media/src/sources/audio_input.rs+++ b/crates/media/src/sources/audio_input.rs@@ -32,14 +32,14 @@ pub struct AudioInputSource {impl AudioInputSource {pub fn init(selected_audio_input: Option<&String>) -> Option<Self> {- tracing::debug!("Selected audio input: {:?}", selected_audio_input);+ println!("Selected audio input: {:?}", selected_audio_input);let mut devices = Self::get_devices();selected_audio_input.and_then(|device_name| devices.swap_remove_entry(device_name)).map(|(device_name, (device, config))| {- tracing::info!("Using audio device: {}", device_name);+ println!("Using audio device: {}", device_name);Self {device,@@ -70,7 +70,7 @@ impl AudioInputSource {let get_usable_device = |device: Device| {device.supported_input_configs()- .map_err(|error| tracing::debug!("Error: {error}"))+ .map_err(|error| eprintln!("Error: {error}")).ok().and_then(|mut configs| configs.find(|c| format_for(c.sample_format()).is_some())).and_then(|config| {@@ -94,8 +94,8 @@ impl AudioInputSource {}}Err(error) => {- tracing::warn!("Could not access audio input devices");- tracing::debug!("{error}");+ eprintln!("Could not access audio input devices");+ eprintln!("{error}");}}@@ -115,19 +115,21 @@ impl AudioInputSource {let data_callback = move |data: &cpal::Data, info: &cpal::InputCallbackInfo| {let capture_time = info.timestamp().capture;match clock.timestamp_for(capture_time) {- None => tracing::warn!("Clock is currently stopped. Dropping samples."),+ None => eprintln!("Clock is currently stopped. Dropping samples."),Some(timestamp) => {let buffer = audio_info.wrap_frame(data.bytes(), timestamp.try_into().unwrap());- if let Err(_) = output.send(buffer) {- tracing::debug!("Pipeline is unreachable. Recording will shut down.");- }+ // TODO(PJ): Send error when I bring error infra back online+ output.send(buffer).unwrap();+ // if let Err(_) = output.send(buffer) {+ // tracing::debug!("Pipeline is unreachable. Recording will shut down.");+ // }}};};let error_callback = |err| {// TODO: Handle errors such as device being disconnected. Some kind of fallback or pop-up?- tracing::error!("An error occurred on the audio stream: {}", err);+ eprintln!("An error occurred on the audio stream: {}", err);};self.device@@ -139,7 +141,7 @@ impl AudioInputSource {None,).map_err(|error| {- tracing::error!("Error while preparing audio capture: {error}");+ eprintln!("Error while preparing audio capture: {error}");MediaError::TaskLaunch("Failed to start audio capture".into())})}@@ -162,7 +164,7 @@ impl PipelineSourceTask for AudioInputSource {type Clock = SynchronisedClock<StreamInstant>;- #[tracing::instrument(skip_all)]+ // #[tracing::instrument(skip_all)]fn run(&mut self,clock: Self::Clock,@@ -170,12 +172,12 @@ impl PipelineSourceTask for AudioInputSource {mut control_signal: crate::pipeline::control::PipelineControlSignal,output: Sender<Self::Output>,) {- tracing::info!("Preparing audio input source thread...");+ println!("Preparing audio input source thread...");match self.build_stream(clock, output) {Err(error) => ready_signal.send(Err(error)).unwrap(),Ok(stream) => {- tracing::info!("Using audio input device {}", self.device_name);+ println!("Using audio input device {}", self.device_name);ready_signal.send(Ok(())).unwrap();loop {@@ -186,7 +188,7 @@ impl PipelineSourceTask for AudioInputSource {stream.play().expect("Failed to start audio input recording");- tracing::info!("Audio input recording started.");+ println!("Audio input recording started.");}Some(Control::Pause) => {stream@@ -200,7 +202,7 @@ impl PipelineSourceTask for AudioInputSource {}}- tracing::info!("Shutting down audio input source thread.")+ println!("Shutting down audio input source thread.")}}}diff --git a/crates/media/src/sources/camera.rs b/crates/media/src/sources/camera.rsindex 527f2e745..2b6175405 100644--- a/crates/media/src/sources/camera.rs+++ b/crates/media/src/sources/camera.rs@@ -37,7 +37,7 @@ impl CameraSource {} = camera_frame;match clock.timestamp_for(captured_at) {None => {- tracing::warn!("Clock is currently stopped. Dropping frames.");+ eprintln!("Clock is currently stopped. Dropping frames.");}Some(timestamp) => {frame.set_pts(Some(timestamp));@@ -61,7 +61,7 @@ impl CameraSource {for frame in frames {if let Err(error) = self.process_frame(clock, output, frame) {- tracing::error!("{error}");+ eprintln!("{error}");break;}}@@ -73,7 +73,7 @@ impl PipelineSourceTask for CameraSource {type Clock = SynchronisedClock<Instant>;- #[tracing::instrument(skip_all)]+ // #[tracing::instrument(skip_all)]fn run(&mut self,mut clock: Self::Clock,@@ -81,7 +81,7 @@ impl PipelineSourceTask for CameraSource {mut control_signal: crate::pipeline::control::PipelineControlSignal,output: Sender<Self::Output>,) {- tracing::info!("Preparing camera source thread...");+ println!("Preparing camera source thread...");let mut frames_rx: Option<Receiver<RawCameraFrame>> = None;ready_signal.send(Ok(())).unwrap();@@ -93,12 +93,12 @@ impl PipelineSourceTask for CameraSource {match frames.recv() {Ok(frame) => {if let Err(error) = self.process_frame(&mut clock, &output, frame) {- tracing::error!("{error}");+ eprintln!("{error}");break;}}Err(_) => {- tracing::error!("Lost connection with the camera feed");+ eprintln!("Lost connection with the camera feed");break;}}@@ -119,6 +119,6 @@ impl PipelineSourceTask for CameraSource {}}- tracing::info!("Shutting down screen capture source thread.");+ println!("Shutting down screen capture source thread.");}}diff --git a/crates/media/src/sources/screen_capture.rs b/crates/media/src/sources/screen_capture.rsindex 6e02f21b9..2476f7286 100644--- a/crates/media/src/sources/screen_capture.rs+++ b/crates/media/src/sources/screen_capture.rs@@ -181,7 +181,7 @@ impl PipelineSourceTask for ScreenCaptureSource {type Clock = SynchronisedClock<RawNanoseconds>;type Output = FFVideo;- #[tracing::instrument(skip_all)]+ // #[tracing::instrument(skip_all)]fn run(&mut self,mut clock: Self::Clock,@@ -189,7 +189,7 @@ impl PipelineSourceTask for ScreenCaptureSource {mut control_signal: crate::pipeline::control::PipelineControlSignal,output: Sender<Self::Output>,) {- tracing::info!("Preparing screen capture source thread...");+ println!("Preparing screen capture source thread...");let maybe_capture_window_id = match &self.options.target {Some(Target::Window(window)) => Some(window.id),@@ -209,7 +209,7 @@ impl PipelineSourceTask for ScreenCaptureSource {capturer.start_capture();capturing = true;- tracing::info!("Screen recording started.");+ println!("Screen recording started.");}match capturer.get_next_frame() {@@ -217,14 +217,14 @@ impl PipelineSourceTask for ScreenCaptureSource {let raw_timestamp = RawNanoseconds(frame.display_time);match clock.timestamp_for(raw_timestamp) {None => {- tracing::warn!("Clock is currently stopped. Dropping frames.")+ eprintln!("Clock is currently stopped. Dropping frames.")}Some(timestamp) => {// TODO: I wonder if we should do stride adjustments here or leave it for later (as it is now).let buffer = self.video_info.wrap_frame(&frame.data, timestamp);if let Err(_) = output.send(buffer) {- tracing::error!(+ eprintln!("Pipeline is unreachable. Shutting down recording.");break;@@ -234,20 +234,20 @@ impl PipelineSourceTask for ScreenCaptureSource {}Ok(_) => unreachable!(),Err(error) => {- tracing::error!("Capture error: {error}");+ eprintln!("Capture error: {error}");break;}}}Some(Control::Pause) => {- tracing::info!("Received pause signal");+ println!("Received pause signal");if capturing {capturer.stop_capture();capturing = false;}}Some(Control::Shutdown) | None => {- tracing::info!("Received shutdown signal");+ println!("Received shutdown signal");if capturing {capturer.stop_capture();}@@ -256,6 +256,6 @@ impl PipelineSourceTask for ScreenCaptureSource {}}- tracing::info!("Shutting down screen capture source thread.");+ println!("Shutting down screen capture source thread.");}}