fix: initialize logging before planning mode check
Move initialize_logging() call to run immediately after CLI parsing, before any mode checks. This ensures the --verbose flag works correctly in planning mode, which previously bypassed logging initialization. Previously, planning mode would return early before initialize_logging() was called, causing verbose output to be silently ignored.
This commit is contained in:
@@ -39,6 +39,9 @@ use utils::{initialize_logging, load_config_with_cli_overrides, setup_workspace_
|
||||
pub async fn run() -> Result<()> {
|
||||
let cli = Cli::parse();
|
||||
|
||||
// Initialize logging FIRST (before any mode checks)
|
||||
initialize_logging(cli.verbose);
|
||||
|
||||
if cli.codebase_fast_start.is_some() {
|
||||
print!("codebase_fast_start is temporarily disabled.");
|
||||
std::process::exit(1);
|
||||
@@ -71,9 +74,6 @@ pub async fn run() -> Result<()> {
|
||||
.await;
|
||||
}
|
||||
|
||||
// Initialize logging
|
||||
initialize_logging(cli.verbose);
|
||||
|
||||
// Set up workspace directory
|
||||
let workspace_dir = determine_workspace_dir(&cli)?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user