Skip to content

Commit

Permalink
Merge pull request #272 from Interhyp/271-disable-health-logging
Browse files Browse the repository at this point in the history
#271 disable health logging
  • Loading branch information
Roshick authored Mar 4, 2024
2 parents 7d807c5 + f19fec9 commit c7b4d03
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions internal/web/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (
libcontroller "github.com/StephanHCB/go-backend-service-common/acorns/controller"
librepo "github.com/StephanHCB/go-backend-service-common/acorns/repository"
libmiddleware "github.com/StephanHCB/go-backend-service-common/web/middleware"
"github.com/StephanHCB/go-backend-service-common/web/middleware/requestlogging"
"github.com/StephanHCB/go-backend-service-common/web/middleware/security"
"github.com/go-chi/chi/v5"
"net"
Expand Down Expand Up @@ -125,6 +126,11 @@ func (s *Impl) WireUp(ctx context.Context) {
"GET /v3/api-docs",
"GET /swagger-ui.*",
},
RequestLoggingOptions: requestlogging.Options{ExcludeLogging: []string{
"GET / 200",
"GET /health 200",
"GET /management/health 200",
}},
}

err := libmiddleware.SetupStandardMiddlewareStack(ctx, s.Router, options)
Expand Down

0 comments on commit c7b4d03

Please sign in to comment.