Don't log on cache hit.

This commit is contained in:
Bill Thiede 2020-02-22 21:32:17 -08:00
parent 233d0c4883
commit 1b292b30c9

View File

@ -300,10 +300,7 @@ impl Library {
let db = self.cache_db.clone(); let db = self.cache_db.clone();
match db.get(key.as_bytes()) { match db.get(key.as_bytes()) {
// Cache hit, return bytes as-is. // Cache hit, return bytes as-is.
Ok(Some(bytes)) => { Ok(Some(bytes)) => Some(bytes),
info!("cache HIT {}", key);
Some(bytes)
}
// Cache miss, fill cache and return. // Cache miss, fill cache and return.
Ok(None) => { Ok(None) => {
info!("cache MISS {}", key); info!("cache MISS {}", key);