fix(player): volume tick log at debug, not info
A slider drag delivers dozens of SetVolume commands per second and each logged an info line from the audio thread — 758 of 1025 lines in a #555 field log. Log-level change only; the audio path is untouched. cc
This commit is contained in:
1 file changed
+5
-1
@@ -3030,7 +3030,11 @@ impl Player {
|
|||||||
if let Some(ref engine) = *current_engine {
|
if let Some(ref engine) = *current_engine {
|
||||||
apply_engine_volume(&stream_opt, &engine, volume);
|
apply_engine_volume(&stream_opt, &engine, volume);
|
||||||
}
|
}
|
||||||
log::info!("Audio thread: volume set to {}", volume);
|
// debug: a slider drag delivers dozens of these per
|
||||||
|
// second — at info they dominated a field log (#555,
|
||||||
|
// 758 of 1025 lines) and each one is a formatted
|
||||||
|
// write from the AUDIO thread.
|
||||||
|
log::debug!("Audio thread: volume set to {}", volume);
|
||||||
}
|
}
|
||||||
AudioCommand::Seek(position_secs) => {
|
AudioCommand::Seek(position_secs) => {
|
||||||
if current_engine.as_ref().map(|e| e.is_dop()).unwrap_or(false) {
|
if current_engine.as_ref().map(|e| e.is_dop()).unwrap_or(false) {
|
||||||
|
|||||||
Reference in new issue
Block a user