Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6384443
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T02:46:35+00:00 2026-05-25T02:46:35+00:00

I use a pretty old rails version which is 2.3.2 because of legacy project.

  • 0

I use a pretty old rails version which is 2.3.2 because of legacy project.

I set global log_level to :debug in our rails app. But since we also use Rails.cache the log file are full of annoying lines such as
Cache read: …
Cache miss: …

I want to just suppress these but not affect other ‘more useful’ info such as SQL logging.

How to do that?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T02:46:36+00:00Added an answer on May 25, 2026 at 2:46 am

    Well, after initializing your cache store (in the example below, I use memory store) in your specific environment.rb file, you can redirect cache_store’s log to a separate file and also tweak the logger level:

    config.cache_store = ActiveSupport::Cache::MemoryStore.new(:expires_in => 5.minutes)
    config.cache_store.logger = Logger.new("#{Rails.root}/log/#{ENV['RAILS_ENV']}_cache.log")
    config.cache_store.logger.level = Logger::INFO
    

    In addition to that, the cache store has a method called silence! that will turn off the logger 😐

    config.cache_store.silence!
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm making pretty heavy use of JSON parsing in an app I'm writing. Most
I'm making pretty heavy use of reflection in my current project to greatly simplify
I have a pretty complex criteria, which I use to retrieve, sort and page
My IE is IE 6. It's pretty old, but I have to use it.
I'm a pretty descent old school ASPNET developer i.e I still use Visual studio
Hallo, I'm working on a website which is pretty simple and old. We just
Our products use the Greenleaf Archive Library , an old compression library for Windows.
I am trying to use Hudson for my project but the CC version I
Our app is getting hit pretty hard by a memory leak. I've found that
I've downloaded the latest update of XAMPP which pretty much messed up my old

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.