Skip to content

Commit

Permalink
Add sanity logging to ServeHTTP method
Browse files Browse the repository at this point in the history
  • Loading branch information
lalexgap committed Nov 14, 2023
1 parent cd3b81b commit 31fdcca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions paymentproxy/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ func NewPaymentProxy(proxyAddress string, nitroEndpoint string, destinationURL s
// It then delegates to the reverse proxy to handle rewriting the request and sending it to the destination
func (p *PaymentProxy) ServeHTTP(w http.ResponseWriter, r *http.Request) {
fmt.Println("Sanity")
slog.Info("Sanity")
// If the request is a health check, return a 200 OK
if r.URL.Path == "/health" {
w.WriteHeader(http.StatusOK)
Expand Down

0 comments on commit 31fdcca

Please sign in to comment.