Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

fix(audio): qualify tracing::warn! in cfg-unconditional path — release-app release-cli

Louis Beaumont9fa8daddbca5
diff --git a/crates/screenpipe-audio/src/core/stream.rs b/crates/screenpipe-audio/src/core/stream.rs
index 50e1f3de9..87b003ede 100644
--- a/crates/screenpipe-audio/src/core/stream.rs
+++ b/crates/screenpipe-audio/src/core/stream.rs
@@ -296,7 +296,10 @@ impl AudioStream {
std::thread::sleep(std::time::Duration::from_millis(10));
}
if !join_handle.is_finished() {
- warn!(
+ // Fully-qualified — `use tracing::{error, warn}` above
+ // is cfg-gated to non-pulseaudio builds, so on linux+
+ // pulseaudio CI (Release CLI) `warn!` is out of scope.
+ tracing::warn!(
"audio stream thread did not exit within 3s; aborting (potential cpal/CoreAudio wedge)"
);
join_handle.abort();