Skip to content

Commit

Permalink
chore: disable health check logs (#679)
Browse files Browse the repository at this point in the history
Signed-off-by: San Nguyen <vinhsannguyen91@gmail.com>
  • Loading branch information
sandangel committed Apr 14, 2023
1 parent 9ed1a1a commit cbe27b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/cmd/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ var (
func Start(insecure bool, port int, namespaced bool, managedNamespace string) {
logger := logging.NewLogger().Named("server")
router := gin.New()
router.Use(gin.Logger())
router.Use(gin.LoggerWithConfig(gin.LoggerConfig{SkipPaths: []string{"/livez"}}))
router.RedirectTrailingSlash = true
router.Use(static.Serve("/", static.LocalFile("./ui/build", true)))
routes.Routes(router, routes.SystemInfo{ManagedNamespace: managedNamespace, Namespaced: namespaced})
Expand Down

0 comments on commit cbe27b6

Please sign in to comment.