From a2db39d5eaa2a1b0de1ee50630279ab66034b23a Mon Sep 17 00:00:00 2001 From: Dessalines Date: Wed, 1 Jul 2020 12:52:13 -0400 Subject: [PATCH] Adding IP to the rate limit request line. --- server/src/rate_limit/rate_limiter.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/server/src/rate_limit/rate_limiter.rs b/server/src/rate_limit/rate_limiter.rs index 3e2ea787b..17aaa98c4 100644 --- a/server/src/rate_limit/rate_limiter.rs +++ b/server/src/rate_limit/rate_limiter.rs @@ -85,7 +85,10 @@ impl RateLimiter { ); Err( APIError { - message: format!("Too many requests. {} per {} seconds", rate, per), + message: format!( + "Too many requests. IP: {}, {} per {} seconds", + ip, rate, per + ), } .into(), )