Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

force trace logging in desktop

Brendan Allan91eaf8ad1ea2
diff --git a/apps/desktop/src-tauri/src/main.rs b/apps/desktop/src-tauri/src/main.rs
index dd7dea55f..d94118d76 100644
--- a/apps/desktop/src-tauri/src/main.rs
+++ b/apps/desktop/src-tauri/src/main.rs
@@ -7,6 +7,10 @@ use cap_desktop::DynLoggingLayer;
use tracing_subscriber::{layer::SubscriberExt, util::SubscriberInitExt};
fn main() {
+ unsafe {
+ std::env::set_var("RUST_LOG", "trace");
+ }
+
// We have to hold onto the ClientInitGuard until the very end
let _guard = std::option_env!("CAP_DESKTOP_SENTRY_URL").map(|url| {
sentry::init((
diff --git a/crates/media/Cargo.toml b/crates/media/Cargo.toml
index 31d68124d..11485e166 100644
--- a/crates/media/Cargo.toml
+++ b/crates/media/Cargo.toml
@@ -30,7 +30,7 @@ serde = { version = "1", features = ["derive"] }
specta.workspace = true
tempfile = "3.12.0"
thiserror.workspace = true
-tracing = { workspace = true, features = ["release_max_level_info"] }
+tracing = { workspace = true }
futures = "0.3.31"
axum = { version = "0.7.9", features = ["macros", "ws"] }
tokio.workspace = true