1
0
mirror of https://github.com/BurntSushi/ripgrep.git synced 2024-12-02 02:56:32 +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
No known key found for this signature in database
GPG Key ID: B2E3A4923F8B0D44

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