mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 08:49:06 +08:00
don't log 404s to gravatar.com
This commit is contained in:
parent
d47fa6653b
commit
a0fc8bd924
|
@ -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}"
|
||||
|
|
Loading…
Reference in New Issue
Block a user