mirror of
https://github.com/discourse/discourse.git
synced 2025-03-09 14:34:35 +00:00
Silence avatar logger for sanity
This commit is contained in:
parent
50a0c1a751
commit
20c640355d
@ -17,7 +17,8 @@ class SilenceLogger < Rails::Rack::Logger
|
|||||||
|
|
||||||
if env[HTTP_X_SILENCE_LOGGER] ||
|
if env[HTTP_X_SILENCE_LOGGER] ||
|
||||||
@opts[:silenced].include?(path_info) ||
|
@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
|
Rails.logger.level = Logger::WARN
|
||||||
@app.call(env)
|
@app.call(env)
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user