refactor: replace github.com/Kichiyaki/chizap -> gitea.dwysokinski.me/Kichiyaki/chizap
All checks were successful
continuous-integration/drone/pr Build is passing
All checks were successful
continuous-integration/drone/pr Build is passing
This commit is contained in:
parent
4fe51290bb
commit
82b0f7fcc5
|
@ -7,6 +7,7 @@ import (
|
|||
"net/http"
|
||||
"os"
|
||||
"os/signal"
|
||||
"strings"
|
||||
"syscall"
|
||||
"time"
|
||||
|
||||
|
@ -175,7 +176,12 @@ func getChiMiddlewares(logger *zap.Logger) chi.Middlewares {
|
|||
return chi.Middlewares{
|
||||
middleware.RealIP,
|
||||
otelchi.Middleware(serviceName),
|
||||
chizap.Logger(logger),
|
||||
chizap.Logger(
|
||||
logger,
|
||||
chizap.WithFilter(func(r *http.Request) bool {
|
||||
return !strings.HasPrefix(r.URL.Path, "/_meta")
|
||||
}),
|
||||
),
|
||||
middleware.Recoverer,
|
||||
}
|
||||
}
|
||||
|
|
Reference in New Issue
Block a user