forked from DGNum/colmena
util: Log the configuration in use
This commit is contained in:
parent
9cd2af9438
commit
7b1feffb9e
1 changed files with 9 additions and 0 deletions
|
@ -130,6 +130,15 @@ pub async fn hive_from_args(args: &ArgMatches<'_>) -> NixResult<Hive> {
|
|||
};
|
||||
|
||||
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") {
|
||||
|
|
Loading…
Reference in a new issue