Skip to content

Commit

Permalink
faucet: log of client
Browse files Browse the repository at this point in the history
  • Loading branch information
emailtovamos committed Jul 22, 2024
1 parent d98b22b commit 8fe7ca0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/faucet/faucet.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 8fe7ca0

Please sign in to comment.