Skip to content

Commit

Permalink
test: set release mode
Browse files Browse the repository at this point in the history
  • Loading branch information
appleboy committed Jun 19, 2021
1 parent c1f76a0 commit 5f7b9f6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions logger_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ func performRequest(r http.Handler, method, path string, headers ...header) *htt

func TestLogger(t *testing.T) {
buffer := new(bytes.Buffer)
gin.SetMode(gin.ReleaseMode)
r := gin.New()
r.Use(SetLogger(WithWriter(buffer)))
r.GET("/example", func(c *gin.Context) {})
Expand Down

0 comments on commit 5f7b9f6

Please sign in to comment.