Don't log on cache hit.
This commit is contained in:
parent
233d0c4883
commit
1b292b30c9
@ -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);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user