Compare commits
2 Commits
717cf333f7
...
ba2f3876c6
Author | SHA1 | Date | |
---|---|---|---|
ba2f3876c6 | |||
e72b2d0f95 |
2
go.mod
2
go.mod
@ -3,6 +3,7 @@ module git.t-juice.club/microfilm/users
|
|||||||
go 1.21.3
|
go 1.21.3
|
||||||
|
|
||||||
require (
|
require (
|
||||||
|
git.t-juice.club/microfilm/auth v0.1.1
|
||||||
github.com/go-chi/chi/v5 v5.0.10
|
github.com/go-chi/chi/v5 v5.0.10
|
||||||
github.com/google/uuid v1.3.1
|
github.com/google/uuid v1.3.1
|
||||||
github.com/nats-io/nats.go v1.31.0
|
github.com/nats-io/nats.go v1.31.0
|
||||||
@ -11,7 +12,6 @@ require (
|
|||||||
)
|
)
|
||||||
|
|
||||||
require (
|
require (
|
||||||
git.t-juice.club/microfilm/auth v0.1.1 // indirect
|
|
||||||
github.com/golang-jwt/jwt/v5 v5.0.0 // indirect
|
github.com/golang-jwt/jwt/v5 v5.0.0 // indirect
|
||||||
github.com/klauspost/compress v1.17.0 // indirect
|
github.com/klauspost/compress v1.17.0 // indirect
|
||||||
github.com/nats-io/nkeys v0.4.5 // indirect
|
github.com/nats-io/nkeys v0.4.5 // indirect
|
||||||
|
@ -15,6 +15,7 @@ func (s *UserServer) MiddlewareLogging(next http.Handler) http.Handler {
|
|||||||
defer func(ww middleware.WrapResponseWriter) {
|
defer func(ww middleware.WrapResponseWriter) {
|
||||||
s.Logger.Info("Served request.",
|
s.Logger.Info("Served request.",
|
||||||
"status", ww.Status(),
|
"status", ww.Status(),
|
||||||
|
"method", r.Method,
|
||||||
"path", r.URL.Path,
|
"path", r.URL.Path,
|
||||||
"duration", time.Since(t1),
|
"duration", time.Since(t1),
|
||||||
"written", ww.BytesWritten())
|
"written", ww.BytesWritten())
|
||||||
|
Loading…
Reference in New Issue
Block a user