From 1e58b109b5318b06f8fe6e488fc349aaa007ef71 Mon Sep 17 00:00:00 2001 From: Weihang Lo Date: Thu, 16 Nov 2023 17:36:14 -0500 Subject: [PATCH] refactor: log when loading config from file --- src/cargo/util/config/mod.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cargo/util/config/mod.rs b/src/cargo/util/config/mod.rs index b054541d059..bc22e376866 100644 --- a/src/cargo/util/config/mod.rs +++ b/src/cargo/util/config/mod.rs @@ -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(|| {