Don't log 404s for FinalDestination.

* We can't do anything about 404s
This commit is contained in:
Guo Xiang Tan 2018-05-25 10:11:16 +08:00
parent 58fbe74b6f
commit d43895e2a0

View File

@ -283,8 +283,7 @@ class FinalDestination
end
def log(log_level, message)
# blacklist 404 on gravatar.com
return if @status_code == 404 && @uri.hostname["gravatar.com"]
return if @status_code == 404
Rails.logger.public_send(
log_level,