Include individual path checks in --verbose logging (#3489)

This commit is contained in:
Charlie Marsh 2023-03-13 17:13:47 -04:00 committed by GitHub
parent a6e998d639
commit 1e5db58b7b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 7 deletions

View file

@ -74,7 +74,7 @@ pub fn lint_path(
if let Some(messages) =
cache::get(path, package.as_ref(), &metadata, settings, autofix.into())
{
debug!("Cache hit for: {}", path.to_string_lossy());
debug!("Cache hit for: {}", path.display());
return Ok(Diagnostics::new(messages));
}
Some(metadata)
@ -82,6 +82,8 @@ pub fn lint_path(
None
};
debug!("Checking: {}", path.display());
// Read the file from disk.
let contents = std::fs::read_to_string(path)?;