Skip to content

Commit

Permalink
Show request URI when logging response code
Browse files Browse the repository at this point in the history
  • Loading branch information
nroi committed Aug 4, 2024
1 parent 2269532 commit 09c7079
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion flexo/src/mirror_flexo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -799,7 +799,8 @@ impl Handler for DownloadState {
debug!("Received complete header from remote mirror");
let code = req.code.unwrap();
// FIXME this is too noisy: Use log level debug! once #93 has been fixed.
info!("HTTP response code is {}", code);

info!("HTTP response code for {} is {}", &self.job_state.order.requested_path.to_str(), code);
if code == 200 || code == 206 {
let maybe_content_length = req.headers.iter().find_map(|header|
if header.name.eq_ignore_ascii_case("content-length") {
Expand Down

0 comments on commit 09c7079

Please sign in to comment.