chore(logging): reduce noise in default log level
- Device enumeration (48 CPAL devices): info → debug - Playlist fetch completion: info → debug - Playlist command invocation: info → debug - zbus socket_reader/tracing: filtered to warn level These remain visible with RUST_LOG=debug or verbose log capture. cc
This commit is contained in:
4 files changed
+9
-7
No files matched your search
@@ -1274,7 +1274,7 @@ impl QobuzClient {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let elapsed = start.elapsed();
|
let elapsed = start.elapsed();
|
||||||
log::info!(
|
log::debug!(
|
||||||
"[API] get_playlist({}) complete: {} tracks in {:.2}s",
|
"[API] get_playlist({}) complete: {} tracks in {:.2}s",
|
||||||
playlist_id,
|
playlist_id,
|
||||||
playlist.tracks.as_ref().map(|t| t.items.len()).unwrap_or(0),
|
playlist.tracks.as_ref().map(|t| t.items.len()).unwrap_or(0),
|
||||||
|
|||||||
@@ -1380,7 +1380,7 @@ pub struct PipewireSink {
|
|||||||
#[cfg(target_os = "linux")]
|
#[cfg(target_os = "linux")]
|
||||||
#[tauri::command]
|
#[tauri::command]
|
||||||
pub fn get_pipewire_sinks() -> Result<Vec<PipewireSink>, String> {
|
pub fn get_pipewire_sinks() -> Result<Vec<PipewireSink>, String> {
|
||||||
log::info!("Command: get_pipewire_sinks (Linux, using CPAL)");
|
log::debug!("Command: get_pipewire_sinks (Linux, using CPAL)");
|
||||||
|
|
||||||
use rodio::cpal::traits::{DeviceTrait, HostTrait};
|
use rodio::cpal::traits::{DeviceTrait, HostTrait};
|
||||||
|
|
||||||
@@ -1391,7 +1391,7 @@ pub fn get_pipewire_sinks() -> Result<Vec<PipewireSink>, String> {
|
|||||||
.default_output_device()
|
.default_output_device()
|
||||||
.and_then(|d| cpal_device_name(&d));
|
.and_then(|d| cpal_device_name(&d));
|
||||||
|
|
||||||
log::info!("CPAL default device: {:?}", default_device_name);
|
log::debug!("CPAL default device: {:?}", default_device_name);
|
||||||
|
|
||||||
// Enumerate all output devices using CPAL
|
// Enumerate all output devices using CPAL
|
||||||
let sinks: Vec<PipewireSink> = host
|
let sinks: Vec<PipewireSink> = host
|
||||||
@@ -1425,7 +1425,7 @@ pub fn get_pipewire_sinks() -> Result<Vec<PipewireSink>, String> {
|
|||||||
})
|
})
|
||||||
.unwrap_or_else(|| "no configs".to_string());
|
.unwrap_or_else(|| "no configs".to_string());
|
||||||
|
|
||||||
log::info!(
|
log::debug!(
|
||||||
" [{}] Device: '{}' (default: {}) - Configs: {}",
|
" [{}] Device: '{}' (default: {}) - Configs: {}",
|
||||||
idx,
|
idx,
|
||||||
name,
|
name,
|
||||||
@@ -1444,7 +1444,7 @@ pub fn get_pipewire_sinks() -> Result<Vec<PipewireSink>, String> {
|
|||||||
})
|
})
|
||||||
.collect();
|
.collect();
|
||||||
|
|
||||||
log::info!("Found {} audio output devices via CPAL", sinks.len());
|
log::debug!("Found {} audio output devices via CPAL", sinks.len());
|
||||||
|
|
||||||
Ok(sinks)
|
Ok(sinks)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8762,7 +8762,7 @@ pub async fn v2_get_playlist(
|
|||||||
.check_requirements(CommandRequirement::RequiresCoreBridgeAuth)
|
.check_requirements(CommandRequirement::RequiresCoreBridgeAuth)
|
||||||
.await?;
|
.await?;
|
||||||
|
|
||||||
log::info!("[V2] get_playlist: {}", playlistId);
|
log::debug!("[V2] get_playlist: {}", playlistId);
|
||||||
let bridge = bridge.get().await;
|
let bridge = bridge.get().await;
|
||||||
bridge
|
bridge
|
||||||
.get_playlist(playlistId)
|
.get_playlist(playlistId)
|
||||||
|
|||||||
@@ -477,7 +477,9 @@ pub fn run() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Initialize logging with TeeWriter (captures to ring buffer + stderr)
|
// Initialize logging with TeeWriter (captures to ring buffer + stderr)
|
||||||
env_logger::Builder::from_env(env_logger::Env::default().default_filter_or("info"))
|
env_logger::Builder::from_env(
|
||||||
|
env_logger::Env::default().default_filter_or("info,zbus=warn,tracing=warn"),
|
||||||
|
)
|
||||||
.format_timestamp_millis()
|
.format_timestamp_millis()
|
||||||
.target(env_logger::Target::Pipe(Box::new(logging::TeeWriter)))
|
.target(env_logger::Target::Pipe(Box::new(logging::TeeWriter)))
|
||||||
.init();
|
.init();
|
||||||
|
|||||||
Reference in new issue
Block a user