Skip to content

Commit

Permalink
Use Logger#debug? instead of doing a debug level equality comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanahsmith committed Jan 8, 2021
1 parent dd232ff commit d8d5b03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/identity_cache/memoized_cache_proxy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ def memoizing?
end

def log_multi_result(keys, memo_miss_keys, cache_miss_keys)
return unless IdentityCache.logger.level == Logger::DEBUG
return unless IdentityCache.logger.debug?

memoized_keys = keys - memo_miss_keys
cache_hit_keys = memo_miss_keys - cache_miss_keys
Expand Down

0 comments on commit d8d5b03

Please sign in to comment.