@@ -37,6 +37,7 @@ func GetBaseRoutes(
Parent: basePath,
RelativePath: "/readyz",
},
+ Quiet: true,
)
@@ -60,6 +61,7 @@ func GetBaseRoutes(
RelativePath: "/livez",
@@ -222,7 +222,9 @@ func registerRoutes(config *config.Config, routes []*Route) {
}
- atomicGroup.Use(loggerMw.Middleware)
+ if !route.Endpoint.Metadata.Quiet {
+ atomicGroup.Use(loggerMw.Middleware)
+ }
atomicGroup.Method(
string(route.Endpoint.Metadata.Method),
@@ -57,6 +57,9 @@ type APIRequestMetadata struct {
Path *Path
Scopes []PermissionScope
ShouldRedirect bool
+
+ // Whether the endpoint should log
+ Quiet bool
const RequestScopeCtxKey = "requestscopes"
@@ -31,6 +31,7 @@ import (
"golang.org/x/oauth2"
errors2 "errors"
"github.com/gorilla/websocket"
"github.com/porter-dev/porter/internal/helm/grapher"
appsv1 "k8s.io/api/apps/v1"