Skip to content

Commit 20c48bd

Browse files
committed
remove http logger
1 parent 957a995 commit 20c48bd

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

internal/web/logger.go

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,19 @@ package web
22

33
import (
44
"net/http"
5-
6-
"go.uber.org/zap"
5+
// "go.uber.org/zap"
76
)
87

98
// WithLogger is simple Zap logger HTTP middleware
109
func WithLogger(next http.Handler) http.Handler {
1110
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-
)
11+
// zap.L().Info(
12+
// "request",
13+
// zap.String("method", r.Method),
14+
// zap.String("path", r.URL.Path),
15+
// zap.Any("query", r.URL.Query()),
16+
// zap.Int64("body", r.ContentLength),
17+
// )
1918
next.ServeHTTP(w, r)
2019
})
2120
}

0 commit comments

Comments
 (0)