Reduce logging

This commit is contained in:
Jeremy Soller 2024-01-26 15:06:25 -07:00
parent a6a6c39e43
commit e43008822f
No known key found for this signature in database
GPG key ID: DCFCA852D3906975

View file

@ -565,8 +565,8 @@ fn ffmpeg_thread<P: AsRef<Path>>(
(video_queue_duration, video_queue.delay)
};
println!(
"VIDEO: {:?}, {:?} AUDIO: {:?}, {:?}",
log::debug!(
"video: {:?}, {:?} audio: {:?}, {:?}",
video_queue_duration, video_queue_delay, audio_queue_duration, audio_queue_delay
);
@ -574,7 +574,7 @@ fn ffmpeg_thread<P: AsRef<Path>>(
if min_queue_duration > buffer_duration {
// If we have enough queued, we can sleep
let sleep = min_queue_duration - buffer_duration;
println!("SLEEP {:?}", sleep);
log::debug!("sleep {:?}", sleep);
thread::sleep(sleep);
}