From 7b1feffb9e19a126d2d77c22d7c6c73d5f72e95c Mon Sep 17 00:00:00 2001 From: Zhaofeng Li Date: Sat, 4 Dec 2021 01:03:26 -0800 Subject: [PATCH] util: Log the configuration in use --- src/util.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/util.rs b/src/util.rs index a88467b..3f45528 100644 --- a/src/util.rs +++ b/src/util.rs @@ -130,6 +130,15 @@ pub async fn hive_from_args(args: &ArgMatches<'_>) -> NixResult { }; let hive_path = HivePath::from_path(path).await?; + match &hive_path { + HivePath::Legacy(p) => { + log::info!("Using configuration: {}", p.to_string_lossy()); + } + HivePath::Flake(flake) => { + log::info!("Using flake: {}", flake.uri()); + } + } + let mut hive = Hive::new(hive_path)?; if args.is_present("show-trace") {