Skip to content

Commit

Permalink
log ratelimiter response
Browse files Browse the repository at this point in the history
  • Loading branch information
Homulvas committed May 22, 2024
1 parent 63379ba commit 9f5d34d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ratelimiter.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,5 +67,6 @@ func (r *Ratelimiter) ServeHTTP(rw http.ResponseWriter, req *http.Request) {
_, _ = os.Stderr.WriteString("dry run: too many requests")
}

_, _ = fmt.Fprintf(os.Stdout, "ratelimiter response: %v\n", resp.Status)
r.next.ServeHTTP(rw, req)
}

0 comments on commit 9f5d34d

Please sign in to comment.