Skip to content

Commit

Permalink
aaa
Browse files Browse the repository at this point in the history
  • Loading branch information
arloor committed Dec 27, 2023
1 parent fe9a950 commit 2a812cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/server/httpHandlerFunc.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func fileHandlerFunc() http.HandlerFunc {
func logRequest(r *http.Request) {
if r.Method == http.MethodConnect {
log.Println(fmt.Sprintf("%21s", r.RemoteAddr), fmt.Sprintf("%7s", r.Method), r.Host, r.Proto)
} else {
} else if r.URL.Path != "/metrics" {
log.Println(fmt.Sprintf("%21s", r.RemoteAddr), fmt.Sprintf("%7s", r.Method), r.URL.Path, r.Proto)
}
}
Expand Down

0 comments on commit 2a812cd

Please sign in to comment.