feat: enhance logging by changing info to debug level for startup configuration

This commit is contained in:
2025-08-24 13:47:56 +02:00
parent d3511721de
commit e8ffa214d9

View File

@@ -2,7 +2,7 @@ use anyhow::Result;
use clap::Parser; use clap::Parser;
use codebase_to_prompt::Format; use codebase_to_prompt::Format;
use std::path::PathBuf; use std::path::PathBuf;
use tracing::{info, level_filters::LevelFilter}; use tracing::{debug, info, level_filters::LevelFilter};
use tracing_subscriber::FmtSubscriber; use tracing_subscriber::FmtSubscriber;
#[derive(Parser, Debug)] #[derive(Parser, Debug)]
@@ -47,7 +47,6 @@ fn main() -> Result<()> {
let args = Args::parse(); let args = Args::parse();
// Automatically detect format if outputting to a .md file
let mut format = args.format; let mut format = args.format;
if matches!(format, Format::Console) { if matches!(format, Format::Console) {
if let Some(output_path) = &args.output { if let Some(output_path) = &args.output {
@@ -73,7 +72,7 @@ fn main() -> Result<()> {
respect_gitignore: args.respect_gitignore, respect_gitignore: args.respect_gitignore,
}; };
info!("Starting codebase to prompt with config: {:?}", config); debug!("Starting codebase to prompt with config: {:?}", config);
codebase_to_prompt::run(config) codebase_to_prompt::run(config)
} }