[pve-devel] [PATCH installer v6 35/36] fetch-answer: dpcp: improve logging of steps taken
Aaron Lauterer
a.lauterer at proxmox.com
Wed Apr 17 14:31:07 CEST 2024
Signed-off-by: Aaron Lauterer <a.lauterer at proxmox.com>
---
proxmox-fetch-answer/src/fetch_plugins/http.rs | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/proxmox-fetch-answer/src/fetch_plugins/http.rs b/proxmox-fetch-answer/src/fetch_plugins/http.rs
index 4093131..cd3775f 100644
--- a/proxmox-fetch-answer/src/fetch_plugins/http.rs
+++ b/proxmox-fetch-answer/src/fetch_plugins/http.rs
@@ -142,6 +142,7 @@ impl FetchFromHTTP {
/// Tries to fetch answer URL and SSL fingerprint info from DHCP options
fn fetch_dhcp(mut fingerprint: Option<String>) -> Result<(String, Option<String>)> {
+ info!("Checking DHCP options.");
let leases = fs::read_to_string(DHCP_LEASE_FILE)?;
let mut answer_url: Option<String> = None;
@@ -160,9 +161,16 @@ impl FetchFromHTTP {
let answer_url = match answer_url {
None => bail!("No DHCP option found for fetch URL."),
- Some(url) => url,
+ Some(url) => {
+ info!("Found URL for answer in DHCP option: '{url}'");
+ url
+ }
};
+ if let Some(fp) = fingerprint.clone() {
+ info!("Found SSL Fingerprint via DHCP: '{fp}'");
+ }
+
Ok((answer_url, fingerprint))
}
--
2.39.2
More information about the pve-devel
mailing list