Skip to content

Commit

Permalink
core: Quiet probe a bit
Browse files Browse the repository at this point in the history
Resolves #142.
  • Loading branch information
pdeljanov committed Jul 17, 2022
1 parent 0e1bd4a commit 17ffc93
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions symphonia-core/src/probe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use crate::formats::{FormatOptions, FormatReader};
use crate::io::{MediaSourceStream, ReadBytes, SeekBuffered};
use crate::meta::{Metadata, MetadataLog, MetadataOptions, MetadataReader};

use log::{error, info};
use log::{debug, error, info};

mod bloom {

Expand Down Expand Up @@ -238,7 +238,7 @@ impl Probe {
count += 1;

if count % 4096 == 0 {
info!(
debug!(
"searching for format marker... {}+{} / {} bytes.",
init_pos,
count,
Expand All @@ -255,7 +255,7 @@ impl Probe {
context[0..2].copy_from_slice(&win.to_be_bytes()[0..2]);
mss.read_buf_exact(&mut context[2..])?;

info!(
debug!(
"found a possible format marker within {:x?} @ {}+{} bytes.",
context, init_pos, count,
);
Expand Down Expand Up @@ -327,7 +327,7 @@ impl Probe {
let mut reader = meta(metadata_opts);
metadata.push(reader.read_all(&mut mss)?);

info!("chaining metadata element.");
debug!("chaining a metadata element.");
}
}
}
Expand Down

0 comments on commit 17ffc93

Please sign in to comment.