Skip to content

Commit

Permalink
g
Browse files Browse the repository at this point in the history
  • Loading branch information
komuw committed Aug 17, 2024
1 parent 45fb0fd commit 43f46f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func validOpts(t *testing.T) Opts {
"super-h@rd-Pas1word",
// In this case, the actual client IP address is fetched from the given http header.
SingleIpStrategy("CF-Connecting-IP"),
// function to log in middlewares.
// function to use for logging in middlewares.
func(_ http.ResponseWriter, r http.Request, statusCode int, fields []any) {
reqL := log.WithID(r.Context(), l)
reqL.Info("request-and-response", fields...)
Expand Down
2 changes: 1 addition & 1 deletion config/example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func ExampleNew() {
"super-h@rd-Pas1word",
// In this case, the actual client IP address is fetched from the given http header.
config.SingleIpStrategy("CF-Connecting-IP"),
// function to log in middlewares.
// function to use for logging in middlewares
func(_ http.ResponseWriter, r http.Request, statusCode int, fields []any) {
if statusCode >= http.StatusInternalServerError {
// Only log 500's
Expand Down

0 comments on commit 43f46f8

Please sign in to comment.