Skip to content

Commit

Permalink
ignore: add debug log message when opening gitignore file
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
BurntSushi committed May 27, 2024
1 parent 35160a1 commit 0a0893a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/ignore/src/gitignore.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 0a0893a

Please sign in to comment.