add logging crate to reduce unnecessary stdout spam

This commit is contained in:
sigil-03 2025-07-07 12:31:09 -06:00
parent 3023576fec
commit 1e5d328ab4
4 changed files with 22 additions and 2 deletions

View file

@ -1,3 +1,6 @@
#[cfg(feature = "log")]
use log::debug;
// Just a placeholder for now, get rid of this if we don't need it.
#[derive(Debug, PartialEq, serde::Deserialize)]
pub struct Config {}
@ -56,7 +59,8 @@ impl Issues {
} else if direntry.file_name() == "config.toml" {
issues.parse_config(direntry.path().as_path())?;
} else {
println!(
#[cfg(feature = "log")]
debug!(
"ignoring unknown file in issues directory: {:?}",
direntry.file_name()
);