From 08b14a32ed3132ad996da6eee38d4f33798dcfd0 Mon Sep 17 00:00:00 2001 From: Philip Deljanov Date: Thu, 7 Nov 2024 11:48:54 -0500 Subject: [PATCH] chore: Lower log level for some logs. They are annoying in some cases. Fixes #304, #305. --- symphonia-bundle-mp3/src/demuxer.rs | 10 +++++----- symphonia-bundle-mp3/src/layer3/requantize.rs | 6 +++--- symphonia-core/src/probe.rs | 4 ++-- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/symphonia-bundle-mp3/src/demuxer.rs b/symphonia-bundle-mp3/src/demuxer.rs index ee389ec2..62d3fbd5 100644 --- a/symphonia-bundle-mp3/src/demuxer.rs +++ b/symphonia-bundle-mp3/src/demuxer.rs @@ -119,7 +119,7 @@ impl FormatReader for MpaReader { // The base Xing/Info tag may contain the number of frames. if let Some(num_mpeg_frames) = info_tag.num_frames { - info!("using xing header for duration"); + debug!("using xing header for duration"); let num_frames = u64::from(num_mpeg_frames) * header.duration(); @@ -133,7 +133,7 @@ impl FormatReader for MpaReader { } } else if let Some(vbri_tag) = try_read_vbri_tag(&packet, &header) { - info!("using vbri header for duration"); + debug!("using vbri header for duration"); let num_frames = u64::from(vbri_tag.num_mpeg_frames) * header.duration(); @@ -768,7 +768,7 @@ fn try_read_info_tag_inner(buf: &[u8], header: &FrameHeader) -> Result Result( // samples, therefore, undo them! The caller will be reponsible for re-aligning the bitstream // reader. Candy Pop confirms this. else if bits_read > part3_bits && i > big_values_len { - info!("count1 overrun, malformed bitstream"); + debug!("count1 overrun, malformed bitstream"); i -= 4; } else if bits_read > part3_bits { // It seems that most other decoders don't undo overruns of the big values. We'll just print // a message for now. - info!("big_values overrun, malformed bitstream"); + debug!("big_values overrun, malformed bitstream"); } // The final partition after the count1 partition is the rzero partition. Samples in this diff --git a/symphonia-core/src/probe.rs b/symphonia-core/src/probe.rs index adf47624..c1cc1bcb 100644 --- a/symphonia-core/src/probe.rs +++ b/symphonia-core/src/probe.rs @@ -13,7 +13,7 @@ use crate::formats::{FormatOptions, FormatReader}; use crate::io::{MediaSourceStream, ReadBytes, SeekBuffered}; use crate::meta::{Metadata, MetadataLog, MetadataOptions, MetadataReader}; -use log::{debug, error, info}; +use log::{debug, error}; mod bloom { @@ -276,7 +276,7 @@ impl Probe { // TODO: Implement scoring. - info!( + debug!( "found the format marker {:x?} @ {}+{} bytes.", &context[0..len], init_pos,