diff --git a/lib/final_destination.rb b/lib/final_destination.rb index ed821d2465d..84890fe00ba 100644 --- a/lib/final_destination.rb +++ b/lib/final_destination.rb @@ -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}"