Skip to content

Commit

Permalink
refactor: log when loading config from file
Browse files Browse the repository at this point in the history
  • Loading branch information
weihanglo committed Nov 16, 2023
1 parent 80326ca commit 1e58b10
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/cargo/util/config/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1200,6 +1200,8 @@ impl Config {
path.display()
);
}
tracing::debug!(?path, ?why_load, includes, "load config from file");

let contents = fs::read_to_string(path)
.with_context(|| format!("failed to read configuration file `{}`", path.display()))?;
let toml = parse_document(&contents, path, self).with_context(|| {
Expand Down

0 comments on commit 1e58b10

Please sign in to comment.