We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7980f05 commit 9c5ac29Copy full SHA for 9c5ac29
internal/api/middleware/request_logging.go
@@ -19,7 +19,12 @@ import (
19
func RequestLoggingMiddleware(logger logging.RequestLogger) gin.HandlerFunc {
20
return func(c *gin.Context) {
21
path := c.Request.URL.Path
22
- if strings.HasPrefix(path, "/v0/management") || path == "/keep-alive" {
+ shouldLog := false
23
+ if strings.HasPrefix(path, "/v1") {
24
+ shouldLog = true
25
+ }
26
+
27
+ if !shouldLog {
28
c.Next()
29
return
30
}
0 commit comments