Fix #2396, data race logger middleware

pull/2397/head
René Werner 2023-04-02 14:36:00 +02:00
parent 243f393434
commit 035e7d4f43
1 changed files with 3 additions and 0 deletions

View File

@ -275,6 +275,9 @@ func Test_Logger_Data_Race(t *testing.T) {
defer bytebufferpool.Put(buf)
app.Use(New(ConfigDefault))
app.Use(New(Config{
Format: "${time} | ${pid} | ${locals:requestid} | ${status} | ${latency} | ${method} | ${path}\n",
}))
app.Get("/", func(c *fiber.Ctx) error {
return c.SendString("hello")