From c89a78ec085077f6344b0439ddf07fdad7336310 Mon Sep 17 00:00:00 2001 From: Andrew Barnes Date: Wed, 11 Mar 2026 09:53:26 -0400 Subject: [PATCH] Log explicit config file path in verbose output (#18353) When `--config-file` or `UV_CONFIG_FILE` is used, emit a `DEBUG` message after logging is initialized so users can verify which configuration file is active. The existing debug log in `FilesystemOptions::from_file()` fires before the tracing subscriber is registered, so it is silently dropped. Closes #17182 --------- Co-authored-by: konstin --- crates/uv/src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/uv/src/lib.rs b/crates/uv/src/lib.rs index 43e3a20ca..92c60bcc2 100644 --- a/crates/uv/src/lib.rs +++ b/crates/uv/src/lib.rs @@ -362,6 +362,9 @@ async fn run(mut cli: Cli) -> Result { )?; debug!("uv {}", uv_cli::version::uv_self_version()); + if let Some(config_file) = cli.top_level.config_file.as_ref() { + debug!("Using configuration file: {}", config_file.user_display()); + } if globals.preview.all_enabled() { debug!("All preview features are enabled"); } else if globals.preview.any_enabled() {