New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
config.assets.logger not working #4569
Comments
Can you put an example of your logs? |
|
Looking closer at the logs, it seems it gets rid of the calls like:
But what about the calls like:
Is that sprockets or something else? |
The If you want to silent the request logging you can patch Rails::Rack::Logger in an initializer: Rails::Rack::Logger.class_eval do
def call_with_quiet_assets(env)
previous_level = Rails.logger.level
Rails.logger.level = Logger::ERROR if env['PATH_INFO'].index("/assets/") == 0
call_without_quiet_assets(env).tap do
Rails.logger.level = previous_level
end
end
alias_method_chain :call, :quiet_assets
end For details about why we won't silent the |
Cool. Thanks! |
3.2.13 not working。。。。 |
Setting
config.assets.logger = false
doesn't seem to work as advertised. When set, I still see sprockets asset logging.The text was updated successfully, but these errors were encountered: