]> git.proxmox.com Git - pve-installer.git/blobdiff - proxmox-fetch-answer/src/fetch_plugins/http.rs
fetch-answer: dpcp: improve logging of steps taken
[pve-installer.git] / proxmox-fetch-answer / src / fetch_plugins / http.rs
index 4093131fcf96b42d475dc38757f307cc590b910b..cd3775f53eca1f91212c65ba378d4dfacdfdc6cf 100644 (file)
@@ -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))
     }