mirror of
https://github.com/hkalexling/Mango.git
synced 2025-08-02 10:55:30 -04:00
Fix logging
This commit is contained in:
parent
15a54f4f23
commit
44d9c51ff9
@ -161,7 +161,9 @@ class LRUCache
|
||||
end
|
||||
|
||||
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
|
||||
min_tuple = @@cache.min_by { |_, entry| entry.atime }
|
||||
min_key = min_tuple[0]
|
||||
|
Loading…
x
Reference in New Issue
Block a user