How to disable activerecord cache logging in rails
Posted
by
user1508459
on Stack Overflow
See other posts from Stack Overflow
or by user1508459
Published on 2012-07-07T08:41:17Z
Indexed on
2012/07/07
9:16 UTC
Read the original article
Hit count: 181
I'm trying to disable logging of caching in production. Have succeeded in getting SQL to stop logging queries, but no luck with caching log entries. Example line in production log:
CACHE (0.0ms) SELECT merchants
.* FROM merchants
WHERE merchants
.id
= 1 LIMIT 1
I do not want to disable all logging, since I want logger.debug statements to show up in the production log. Using rails 3.2.1 with Mysql and Apache. Any suggestions?
© Stack Overflow or respective owner