Skip to content

Commit 4665485

Browse files
committed
feat: disable gin.Logger()
1 parent 11ff8d4 commit 4665485

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

main.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ func main() {
4545
log.Panic(err, "parse config file error, config path: '%v'", configPath)
4646
}
4747

48-
r := gin.Default()
48+
r := gin.New()
49+
r.Use(gin.Recovery())
4950
r.Use(func(c *gin.Context) {
5051
c.Header("Content-Type", "text/plain; charset=UTF-8")
5152
})

0 commit comments

Comments
 (0)