1
0
mirror of https://github.com/BurntSushi/ripgrep.git synced 2025-07-16 22:42:20 +02:00

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.
This commit is contained in:
Andrew Gallant
2024-05-27 14:53:19 -04:00
parent 35160a1cdb
commit 0a0893a765

View File

@ -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() {