fix: generate gin logs failed cause access logs panic (#34142)

relate: https://github.com/milvus-io/milvus/issues/34141

Signed-off-by: aoiasd <zhicheng.yue@zilliz.com>
This commit is contained in:
aoiasd 2024-07-05 16:30:10 +08:00 committed by GitHub
parent 18f2458385
commit 233b8486ec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -40,7 +40,7 @@ type RestfulInfo struct {
}
func NewRestfulInfo() *RestfulInfo {
return &RestfulInfo{start: time.Now()}
return &RestfulInfo{start: time.Now(), params: &gin.LogFormatterParams{}}
}
func (i *RestfulInfo) SetParams(p *gin.LogFormatterParams) {