mirror of
https://github.com/discourse/discourse.git
synced 2025-03-15 08:25:28 +08:00
add better diagnostics for rate limits
This commit is contained in:
parent
25f4d98307
commit
715cb98e95
@ -173,7 +173,7 @@ class Middleware::RequestTracker
|
||||
limiter60.performed!
|
||||
rescue RateLimiter::LimitExceeded
|
||||
if GlobalSetting.max_requests_per_ip_mode == "warn"
|
||||
Rails.logger.warn("Global IP rate limit exceeded for #{ip}: #{type} second rate limit")
|
||||
Rails.logger.warn("Global IP rate limit exceeded for #{ip}: #{type} second rate limit, uri: #{env["REQUEST_URI"]}")
|
||||
false
|
||||
else
|
||||
true
|
||||
|
Loading…
x
Reference in New Issue
Block a user