This commit is contained in:
Samuel Berthe
2023-10-24 11:33:08 +02:00
parent 7b2004ad1f
commit 26cd833d20
2 changed files with 8 additions and 0 deletions
+1
View File
@@ -35,6 +35,7 @@ func main() {
router.Use(sloggin.New(logger))
// config := sloggin.Config{WithRequestBody: true, WithResponseBody: true, WithRequestHeader: true, WithResponseHeader: true}
// router.Use(sloggin.NewWithConfig(logger, config))
router.Use(gin.Recovery())
// Example pong request.
router.GET("/pong", func(c *gin.Context) {