🔇 change logging a little
parent
80bd4abad3
commit
931ad6d81b
|
@ -168,7 +168,7 @@ async fn serve_file (
|
||||||
let content_length = range.end - range.start;
|
let content_length = range.end - range.start;
|
||||||
|
|
||||||
let body = if decision.should_send_body {
|
let body = if decision.should_send_body {
|
||||||
info! ("Sending range {}-{}", range.start, range.end);
|
debug! ("Sending range {}-{}", range.start, range.end);
|
||||||
|
|
||||||
let seek = SeekFrom::Start (range.start);
|
let seek = SeekFrom::Start (range.start);
|
||||||
f.seek (seek).await?;
|
f.seek (seek).await?;
|
||||||
|
@ -181,7 +181,7 @@ async fn serve_file (
|
||||||
Some (rx)
|
Some (rx)
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
info! ("Not sending body");
|
debug! ("Not sending body");
|
||||||
|
|
||||||
None
|
None
|
||||||
};
|
};
|
||||||
|
@ -248,7 +248,7 @@ fn serve_file_decision (input: &ServeFileInput) -> ServeFileOutput
|
||||||
if let (Some (if_none_match), Some (actual_etag)) = (&input.if_none_match, &input.actual_etag)
|
if let (Some (if_none_match), Some (actual_etag)) = (&input.if_none_match, &input.actual_etag)
|
||||||
{
|
{
|
||||||
if actual_etag == if_none_match {
|
if actual_etag == if_none_match {
|
||||||
info! ("Not Modified");
|
// info! ("Not Modified");
|
||||||
return ServeFileOutput {
|
return ServeFileOutput {
|
||||||
status_code: StatusCode::NotModified,
|
status_code: StatusCode::NotModified,
|
||||||
should_send_body: false,
|
should_send_body: false,
|
||||||
|
|
Loading…
Reference in New Issue