Auto merge of #17744 - alibektas:debug_env_not_set, r=Veykril

minor: Set tracing level to debug when `cargo config get env` fails

fixes #17739
This commit is contained in:
bors 2024-07-30 11:02:21 +00:00
commit 4feec4b0c1

View file

@ -81,7 +81,7 @@ pub(crate) fn cargo_config_env(
tracing::debug!("Discovered cargo config env: {:?}", env);
})
.inspect_err(|err| {
tracing::error!("Failed to discover cargo config env: {:?}", err);
tracing::debug!("Failed to discover cargo config env: {:?}", err);
})
.unwrap_or_default()
}