We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 957a995 commit 20c48bdCopy full SHA for 20c48bd
internal/web/logger.go
@@ -2,20 +2,19 @@ package web
2
3
import (
4
"net/http"
5
-
6
- "go.uber.org/zap"
+ // "go.uber.org/zap"
7
)
8
9
// WithLogger is simple Zap logger HTTP middleware
10
func WithLogger(next http.Handler) http.Handler {
11
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
12
- zap.L().Info(
13
- "request",
14
- zap.String("method", r.Method),
15
- zap.String("path", r.URL.Path),
16
- zap.Any("query", r.URL.Query()),
17
- zap.Int64("body", r.ContentLength),
18
- )
+ // zap.L().Info(
+ // "request",
+ // zap.String("method", r.Method),
+ // zap.String("path", r.URL.Path),
+ // zap.Any("query", r.URL.Query()),
+ // zap.Int64("body", r.ContentLength),
+ // )
19
next.ServeHTTP(w, r)
20
})
21
}
0 commit comments