From 0a0893a76506518e766033d03f5b6d7c7a7a8525 Mon Sep 17 00:00:00 2001 From: Andrew Gallant Date: Mon, 27 May 2024 14:53:19 -0400 Subject: [PATCH] ignore: add debug log message when opening gitignore file I'm not sure why it took me this long to add this debug message, but it's quite useful in determining where ignore rules are coming from. --- crates/ignore/src/gitignore.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/ignore/src/gitignore.rs b/crates/ignore/src/gitignore.rs index 0b667f26..19a347cd 100644 --- a/crates/ignore/src/gitignore.rs +++ b/crates/ignore/src/gitignore.rs @@ -390,6 +390,7 @@ impl GitignoreBuilder { Err(err) => return Some(Error::Io(err).with_path(path)), Ok(file) => file, }; + log::debug!("opened gitignore file: {}", path.display()); let rdr = BufReader::new(file); let mut errs = PartialErrorBuilder::default(); for (i, line) in rdr.lines().enumerate() {