I've changed the debug logs to trace level for the two specific routine activity messages mentioned: (#1402)

1. **`worktree_manager.rs:112`**: Changed "Worktree already properly set up at path" from `debug!` to `trace!`

2. **`path.rs:9`**: Changed "Making path relative" from `tracing::debug!` to `tracing::trace!`

3. **`path.rs:21`**: Changed "Successfully made relative" from `tracing::debug!` to `tracing::trace!` (this is the successful outcome of the path relative operation, also routine)

These are the routine activity logs that fire frequently during normal operation. The other debug logs in these files are either on error/fallback paths or log less frequent events that are more useful for debugging.
This commit is contained in:
Gabriel Gordon-Hall
2025-12-01 12:35:12 +00:00
committed by GitHub
parent 41300de309
commit e616bc3ee8
2 changed files with 4 additions and 4 deletions

View File

@@ -6,7 +6,7 @@ use std::{
use git2::{Error as GitError, Repository}; use git2::{Error as GitError, Repository};
use thiserror::Error; use thiserror::Error;
use tracing::{debug, info}; use tracing::{debug, info, trace};
use utils::shell::resolve_executable_path; use utils::shell::resolve_executable_path;
use super::git::{GitService, GitServiceError}; use super::git::{GitService, GitServiceError};
@@ -109,7 +109,7 @@ impl WorktreeManager {
// Check if worktree already exists and is properly set up // Check if worktree already exists and is properly set up
if Self::is_worktree_properly_set_up(repo_path, worktree_path).await? { if Self::is_worktree_properly_set_up(repo_path, worktree_path).await? {
debug!("Worktree already properly set up at path: {}", path_str); trace!("Worktree already properly set up at path: {}", path_str);
return Ok(()); return Ok(());
} }

View File

@@ -6,7 +6,7 @@ pub const VIBE_IMAGES_DIR: &str = ".vibe-images";
/// Convert absolute paths to relative paths based on worktree path /// Convert absolute paths to relative paths based on worktree path
/// This is a robust implementation that handles symlinks and edge cases /// This is a robust implementation that handles symlinks and edge cases
pub fn make_path_relative(path: &str, worktree_path: &str) -> String { pub fn make_path_relative(path: &str, worktree_path: &str) -> String {
tracing::debug!("Making path relative: {} -> {}", path, worktree_path); tracing::trace!("Making path relative: {} -> {}", path, worktree_path);
let path_obj = normalize_macos_private_alias(Path::new(&path)); let path_obj = normalize_macos_private_alias(Path::new(&path));
let worktree_path_obj = normalize_macos_private_alias(Path::new(worktree_path)); let worktree_path_obj = normalize_macos_private_alias(Path::new(worktree_path));
@@ -18,7 +18,7 @@ pub fn make_path_relative(path: &str, worktree_path: &str) -> String {
if let Ok(relative_path) = path_obj.strip_prefix(&worktree_path_obj) { if let Ok(relative_path) = path_obj.strip_prefix(&worktree_path_obj) {
let result = relative_path.to_string_lossy().to_string(); let result = relative_path.to_string_lossy().to_string();
tracing::debug!("Successfully made relative: '{}' -> '{}'", path, result); tracing::trace!("Successfully made relative: '{}' -> '{}'", path, result);
if result.is_empty() { if result.is_empty() {
return ".".to_string(); return ".".to_string();
} }