mirror of
https://github.com/discourse/discourse.git
synced 2024-11-30 12:43:54 -06:00
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
Block a user