From 922d8f30d60b1dc4d28b8274a2bb7773f91bcc4f Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Thu, 29 Jun 2023 12:01:59 -0700 Subject: [PATCH] Tweak debug log message when ignoring fs events --- crates/project/src/worktree.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/project/src/worktree.rs b/crates/project/src/worktree.rs index 4eb7aed2e5..20e693770f 100644 --- a/crates/project/src/worktree.rs +++ b/crates/project/src/worktree.rs @@ -3172,8 +3172,8 @@ impl BackgroundScanner { .map_or(false, |entry| entry.kind == EntryKind::Dir) }); if !parent_dir_is_loaded { + log::debug!("ignoring event {relative_path:?} within unloaded directory"); unloaded_relative_paths.push(relative_path); - log::debug!("ignoring event {abs_path:?} within unloaded directory"); return false; }