From 43f46f8b70b0e7f9c69ec90775dd19b6fa20f394 Mon Sep 17 00:00:00 2001 From: komuw Date: Sat, 17 Aug 2024 12:31:23 +0300 Subject: [PATCH] g --- config/config_test.go | 2 +- config/example_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/config_test.go b/config/config_test.go index f1931748..7e22a716 100644 --- a/config/config_test.go +++ b/config/config_test.go @@ -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...) diff --git a/config/example_test.go b/config/example_test.go index 64327e1a..6dfeab28 100644 --- a/config/example_test.go +++ b/config/example_test.go @@ -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