Skip to content

Commit

Permalink
fix: use in_state_dir to match logs directory (#1298)
Browse files Browse the repository at this point in the history
  • Loading branch information
kalvinnchau authored Feb 20, 2025
1 parent 9d20d88 commit 296e3cb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/goose-cli/src/commands/info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ fn print_aligned(label: &str, value: &str, width: usize) {

pub fn handle_info(verbose: bool) -> Result<()> {
let data_dir = choose_app_strategy(crate::APP_STRATEGY.clone())?;
let logs_dir = data_dir.in_data_dir("logs");
let logs_dir = data_dir
.in_state_dir("logs")
.unwrap_or_else(|| data_dir.in_data_dir("logs"));
let sessions_dir = data_dir.in_data_dir("sessions");

// Get paths using a stored reference to the global config
Expand Down

0 comments on commit 296e3cb

Please sign in to comment.