Skip to content

Commit

Permalink
color coded uncacheable statements to stand out in the log better. fo…
Browse files Browse the repository at this point in the history
…rmatted to conform with typical rails logging
  • Loading branch information
kbrock authored and ngmoco:) committed Apr 23, 2010
1 parent 73d5fb6 commit 300c5c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cash/query/abstract.rb
Expand Up @@ -28,7 +28,7 @@ def perform(find_options = {}, get_options = {})
misses, missed_keys, objects = hit_or_miss(cache_keys, index, get_options)
format_results(cache_keys, choose_deserialized_objects_if_possible(missed_keys, cache_keys, misses, objects))
else
logger.debug("---- UNCACHEABLE #{table_name} - #{find_options.inspect} - #{get_options.inspect} - #{@options1.inspect} - #{@options2.inspect}") if logger
logger.debug(" \e[1;4;31mUNCACHEABLE\e[0m #{table_name} - #{find_options.inspect} - #{get_options.inspect} - #{@options1.inspect} - #{@options2.inspect}") if logger
uncacheable
end
end
Expand Down

0 comments on commit 300c5c6

Please sign in to comment.