From 1b292b30c993194a64867eca86dc6cb3bae7e6b3 Mon Sep 17 00:00:00 2001 From: Bill Thiede Date: Sat, 22 Feb 2020 21:32:17 -0800 Subject: [PATCH] Don't log on cache hit. --- src/library.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/library.rs b/src/library.rs index 714868f..4a9a806 100644 --- a/src/library.rs +++ b/src/library.rs @@ -300,10 +300,7 @@ impl Library { let db = self.cache_db.clone(); match db.get(key.as_bytes()) { // Cache hit, return bytes as-is. - Ok(Some(bytes)) => { - info!("cache HIT {}", key); - Some(bytes) - } + Ok(Some(bytes)) => Some(bytes), // Cache miss, fill cache and return. Ok(None) => { info!("cache MISS {}", key);