🔊 change logs a bit

main
_ 2022-02-06 20:03:27 +00:00
parent 6ea8b5c30f
commit 80bd4abad3
1 changed files with 4 additions and 2 deletions

View File

@ -165,11 +165,11 @@ async fn serve_file (
let (range, range_requested) = (range.range, range.range_requested);
info! ("Serving range {}-{}", range.start, range.end);
let content_length = range.end - range.start;
let body = if decision.should_send_body {
info! ("Sending range {}-{}", range.start, range.end);
let seek = SeekFrom::Start (range.start);
f.seek (seek).await?;
@ -181,6 +181,8 @@ async fn serve_file (
Some (rx)
}
else {
info! ("Not sending body");
None
};