debug
This commit is contained in:
parent
a78b710d66
commit
569665a5a2
1 changed files with 1 additions and 0 deletions
|
@ -128,6 +128,7 @@ impl Mirror {
|
||||||
let status_code = response.status();
|
let status_code = response.status();
|
||||||
let body_bytes = response.bytes().await.ok()?;
|
let body_bytes = response.bytes().await.ok()?;
|
||||||
if status_code.is_success() {
|
if status_code.is_success() {
|
||||||
|
log::debug!("Writing request to {save:?}");
|
||||||
std::fs::write(save, &body_bytes).unwrap();
|
std::fs::write(save, &body_bytes).unwrap();
|
||||||
}
|
}
|
||||||
let mut http_response = HttpResponse::build(
|
let mut http_response = HttpResponse::build(
|
||||||
|
|
Loading…
Add table
Reference in a new issue