don't log 404s to gravatar.com
This commit is contained in:
parent
d47fa6653b
commit
a0fc8bd924
|
@ -253,6 +253,9 @@ class FinalDestination
|
||||||
end
|
end
|
||||||
|
|
||||||
def log(log_level, message)
|
def log(log_level, message)
|
||||||
|
# blacklist 404 on gravatar.com
|
||||||
|
return if @status_code = 404 && @uri.hostname["gravatar.com"]
|
||||||
|
|
||||||
Rails.logger.public_send(
|
Rails.logger.public_send(
|
||||||
log_level,
|
log_level,
|
||||||
"#{RailsMultisite::ConnectionManagement.current_db}: #{message}"
|
"#{RailsMultisite::ConnectionManagement.current_db}: #{message}"
|
||||||
|
|
Loading…
Reference in New Issue