don't log 404s to gravatar.com

This commit is contained in:
Régis Hanol 2017-11-17 15:38:26 +01:00
parent d47fa6653b
commit a0fc8bd924

View File

@ -253,6 +253,9 @@ class FinalDestination
end
def log(log_level, message)
# blacklist 404 on gravatar.com
return if @status_code = 404 && @uri.hostname["gravatar.com"]
Rails.logger.public_send(
log_level,
"#{RailsMultisite::ConnectionManagement.current_db}: #{message}"