From e616bc3ee8466d9ec841d954782f1910a8cfb26a Mon Sep 17 00:00:00 2001 From: Gabriel Gordon-Hall Date: Mon, 1 Dec 2025 12:35:12 +0000 Subject: [PATCH] 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. --- crates/services/src/services/worktree_manager.rs | 4 ++-- crates/utils/src/path.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/services/src/services/worktree_manager.rs b/crates/services/src/services/worktree_manager.rs index 10bef1cc..6a7e8106 100644 --- a/crates/services/src/services/worktree_manager.rs +++ b/crates/services/src/services/worktree_manager.rs @@ -6,7 +6,7 @@ use std::{ use git2::{Error as GitError, Repository}; use thiserror::Error; -use tracing::{debug, info}; +use tracing::{debug, info, trace}; use utils::shell::resolve_executable_path; use super::git::{GitService, GitServiceError}; @@ -109,7 +109,7 @@ impl WorktreeManager { // Check if worktree already exists and is properly set up 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(()); } diff --git a/crates/utils/src/path.rs b/crates/utils/src/path.rs index 1df9aeb9..635f6688 100644 --- a/crates/utils/src/path.rs +++ b/crates/utils/src/path.rs @@ -6,7 +6,7 @@ pub const VIBE_IMAGES_DIR: &str = ".vibe-images"; /// Convert absolute paths to relative paths based on worktree path /// This is a robust implementation that handles symlinks and edge cases 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 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) { 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() { return ".".to_string(); }