Skip to content

Commit

Permalink
fix generate gin logs failed cause access logs panic
Browse files Browse the repository at this point in the history
Signed-off-by: aoiasd <zhicheng.yue@zilliz.com>
  • Loading branch information
aoiasd committed Jun 24, 2024
1 parent fd922d9 commit 96e3e1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/proxy/accesslog/info/restful_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 96e3e1a

Please sign in to comment.