Skip to content

Commit eb8009e

Browse files
committed
chore: add a bit more logging when discovering metadata
1 parent 0af35f3 commit eb8009e

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

common/src/fetcher/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,8 @@ impl Fetcher {
132132
) -> Result<D::Type, Error> {
133133
let response = self.new_request(Method::GET, url).await?.send().await?;
134134

135+
log::debug!("Response Status: {}", response.status());
136+
135137
Ok(processor.process(response).await?)
136138
}
137139
}

csaf/src/metadata/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@ impl MetadataRetriever {
8484
.filter_map(|ext| Url::parse(&ext.value).ok())
8585
.find(|url| url.scheme() == "https");
8686

87+
if url.is_none() {
88+
log::info!("No CSAF information is existing security.txt");
89+
}
90+
8791
Ok(url)
8892
}
8993

0 commit comments

Comments
 (0)