faucet: log of client

This commit is contained in:
emailtovamos 2024-07-22 10:56:06 +01:00
parent d98b22ba75
commit 8fe7ca0b3b

@ -285,6 +285,7 @@ func (f *faucet) apiHandler(w http.ResponseWriter, r *http.Request) {
limiter := f.limiter.GetLimiter(ip)
if !limiter.Allow() {
log.Warn("Too many requests from client: ", "client", ip)
http.Error(w, "Too many requests", http.StatusTooManyRequests)
return
}