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,5 +1,8 @@
use clap::Parser;
#[cfg(feature = "log")]
use simple_logger;
#[derive(Debug, clap::Parser)]
#[command(version, about, long_about = None)]
struct Args {
@ -49,6 +52,9 @@ fn handle_command(args: &Args, issues_dir: &std::path::Path) -> anyhow::Result<(
}
fn main() -> anyhow::Result<()> {
#[cfg(feature = "log")]
simple_logger::SimpleLogger::new().env().init().unwrap();
let args: Args = Args::parse();
// println!("{:?}", args);