Silence avatar logger for sanity

This commit is contained in:
Robin Ward 2014-05-27 10:27:49 -04:00
parent 50a0c1a751
commit 20c640355d
1 changed files with 2 additions and 1 deletions

View File

@ -17,7 +17,8 @@ class SilenceLogger < Rails::Rack::Logger
if env[HTTP_X_SILENCE_LOGGER] ||
@opts[:silenced].include?(path_info) ||
path_info.start_with?('/logs')
path_info.start_with?('/logs') ||
path_info.start_with?('/user_avatar')
Rails.logger.level = Logger::WARN
@app.call(env)
else