Skip to content

Commit

Permalink
Skip healthz log
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenstolk authored Jun 12, 2023
1 parent 576cf03 commit 7dd0fe1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion elapsed.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ import (

func timeTrack(start time.Time, req *http.Request) {
elapsed := time.Since(start)
log.Printf("[%s] %s %s %s\n", req.Method, req.URL, req.RemoteAddr, elapsed)
if req.URL != "/healthz" {
log.Printf("[%s] %s %s %s\n", req.Method, req.URL, req.RemoteAddr, elapsed)
}
}

func pipeTimeTrack(start time.Time, req *http.Request, pipeUrls string) {
Expand Down

0 comments on commit 7dd0fe1

Please sign in to comment.