@@ -14,7 +14,7 @@ use std::path::Path;
14
14
use std:: sync:: Arc ;
15
15
use tokio:: fs:: File ;
16
16
use tokio:: io;
17
- use tracing:: debug;
17
+ use tracing:: { debug, trace } ;
18
18
use warp:: fs:: { file_stream, optimal_buf_size, Cond , Conditionals } ;
19
19
use warp:: http:: { Response , StatusCode } ;
20
20
@@ -202,15 +202,15 @@ pub async fn cache_or_file_reply(
202
202
//false,false => cache without content-encoding
203
203
//false, true => file
204
204
if !client_accept_gzip && compressed {
205
- debug ! ( "{} hit disk" , key) ;
205
+ trace ! ( "{} hit disk" , key) ;
206
206
Ok ( file_reply ( & item, path. as_ref ( ) , range, modified) . await )
207
207
} else {
208
208
let mut resp = cache_reply ( item. as_ref ( ) , bytes, range, modified) ;
209
209
if client_accept_gzip && compressed {
210
- debug ! ( "{} hit cache, compressed" , key) ;
210
+ trace ! ( "{} hit cache, compressed" , key) ;
211
211
resp. headers_mut ( ) . typed_insert ( ContentEncoding :: gzip ( ) ) ;
212
212
} else {
213
- debug ! ( "{} hit cache" , key) ;
213
+ trace ! ( "{} hit cache" , key) ;
214
214
}
215
215
Ok ( resp)
216
216
}
@@ -255,7 +255,7 @@ pub async fn get_cache_file(
255
255
) -> Option < ( String , Arc < CacheItem > ) > {
256
256
let _key = sanitize_path ( tail) ?;
257
257
let key = _key[ 1 ..] . to_owned ( ) ;
258
- debug ! ( "get file: {host}, tail:{_key}, fixed: {key}" ) ;
258
+ // debug!("get file: {host}, tail:{_key}, fixed: {key}");
259
259
if let Some ( cache_item) = domain_storage. get_file ( host, & key) {
260
260
Some ( ( key, cache_item) )
261
261
} else {
0 commit comments