Skip to content

fix: align logs path with debug paths#246

Open
Bortlesboat wants to merge 1 commit into
CortexLM:mainfrom
Bortlesboat:fix/logs-debug-paths
Open

fix: align logs path with debug paths#246
Bortlesboat wants to merge 1 commit into
CortexLM:mainfrom
Bortlesboat:fix/logs-debug-paths

Conversation

@Bortlesboat
Copy link
Copy Markdown

Summary

  • Align cortex logs with cortex debug paths by deriving logs from the canonical Cortex home directory.
  • Reuse the existing CLI path helper so debug path reporting also honors the same Cortex home resolution.
  • Add CLI coverage that compares cortex debug paths --json and cortex logs under a temp CORTEX_HOME.

Related to PlatformNetwork/bounty-challenge#52660.

Verification

  • cargo test -p cortex-cli --test logs_paths logs_directory_matches_debug_paths_logs_dir -- --nocapture
  • cargo check -p cortex-cli
  • cargo fmt --check --package cortex-cli
  • git diff --check

Copy link
Copy Markdown

@greptile-apps greptile-apps Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant