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<()> {
|
pub async fn run() -> Result<()> {
|
||||||
let cli = Cli::parse();
|
let cli = Cli::parse();
|
||||||
|
|
||||||
|
// Initialize logging FIRST (before any mode checks)
|
||||||
|
initialize_logging(cli.verbose);
|
||||||
|
|
||||||
if cli.codebase_fast_start.is_some() {
|
if cli.codebase_fast_start.is_some() {
|
||||||
print!("codebase_fast_start is temporarily disabled.");
|
print!("codebase_fast_start is temporarily disabled.");
|
||||||
std::process::exit(1);
|
std::process::exit(1);
|
||||||
@@ -71,9 +74,6 @@ pub async fn run() -> Result<()> {
|
|||||||
.await;
|
.await;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Initialize logging
|
|
||||||
initialize_logging(cli.verbose);
|
|
||||||
|
|
||||||
// Set up workspace directory
|
// Set up workspace directory
|
||||||
let workspace_dir = determine_workspace_dir(&cli)?;
|
let workspace_dir = determine_workspace_dir(&cli)?;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user