mirror of
https://github.com/hkalexling/Mango.git
synced 2025-08-03 03:15:31 -04:00
Fix logging
This commit is contained in:
parent
15a54f4f23
commit
44d9c51ff9
@ -161,7 +161,9 @@ class LRUCache
|
|||||||
end
|
end
|
||||||
|
|
||||||
private def self.remove_least_recent_access
|
private def self.remove_least_recent_access
|
||||||
Logger.debug "Removing entries from LRUCache" if @@should_log
|
if @@should_log && is_cache_full
|
||||||
|
Logger.debug "Removing entries from LRUCache"
|
||||||
|
end
|
||||||
while is_cache_full && @@cache.size > 0
|
while is_cache_full && @@cache.size > 0
|
||||||
min_tuple = @@cache.min_by { |_, entry| entry.atime }
|
min_tuple = @@cache.min_by { |_, entry| entry.atime }
|
||||||
min_key = min_tuple[0]
|
min_key = min_tuple[0]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user