feat(cli): Provide traceability on config loading

This commit is contained in:
Ed Page 2021-05-14 14:02:58 -05:00
parent cc5c2b6f5d
commit a0c592ff81

View file

@ -17,6 +17,7 @@ impl Config {
let config = if let Some(path) = let config = if let Some(path) =
find_project_file(cwd, &["typos.toml", "_typos.toml", ".typos.toml"]) find_project_file(cwd, &["typos.toml", "_typos.toml", ".typos.toml"])
{ {
log::debug!("Loading {}", path.display());
Some(Self::from_file(&path)?) Some(Self::from_file(&path)?)
} else { } else {
None None