修复 curve 接口的一些问题
This commit is contained in:
@@ -9,6 +9,12 @@ import (
|
||||
|
||||
func Logger(log *zap.Logger) gin.HandlerFunc {
|
||||
return func(c *gin.Context) {
|
||||
// 跳过 health 检查的日志
|
||||
if c.Request.URL.Path == "/api/v1/health" {
|
||||
c.Next()
|
||||
return
|
||||
}
|
||||
|
||||
start := time.Now()
|
||||
path := c.Request.URL.Path
|
||||
query := c.Request.URL.RawQuery
|
||||
|
||||
Reference in New Issue
Block a user