🔇 change logging a little

main
_ 2022-03-24 22:45:19 +00:00
parent 80bd4abad3
commit 931ad6d81b
1 changed files with 3 additions and 3 deletions

View File

@ -168,7 +168,7 @@ async fn serve_file (
let content_length = range.end - range.start;
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);
f.seek (seek).await?;
@ -181,7 +181,7 @@ async fn serve_file (
Some (rx)
}
else {
info! ("Not sending body");
debug! ("Not sending body");
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 actual_etag == if_none_match {
info! ("Not Modified");
// info! ("Not Modified");
return ServeFileOutput {
status_code: StatusCode::NotModified,
should_send_body: false,