Fiber: 馃悰 Using the logger middleware causes application cpu usage to rise to 20%

Created on 19 Aug 2020  路  3Comments  路  Source: gofiber/fiber

Fiber version
v1.14.1, v1.14.2

Issue description
Using the logger middleware causes application cpu usage to immediately rise to 20%
downgrading to 1.13.3 resolves this

System specs
OS: Linux
Distro: Ubuntu 20.04
Go version: go1.14.3 linux/amd64

Was reproduced by someone else on Windows 10 using Ubuntu 20.04 via WSL

Code snippet

package main

import (
    "github.com/gofiber/fiber"
    "github.com/gofiber/fiber/middleware"
)

func main() {
    app := fiber.New()
    app.Use(middleware.Logger())

    app.Get("/", func(c *fiber.Ctx) {
        c.Send("Hello, World 馃憢!")
    })

    app.Listen(3000)
}
鈽笍 Bug 馃彿 Wait for Release

Most helpful comment

Thnx for the report, expect a hotfix this weekend 馃憤

All 3 comments

Thanks for opening your first issue here! 馃帀 Be sure to follow the issue template! If you need help or want to chat with us, join us on Discord https://gofiber.io/discord

Thnx for the report, expect a hotfix this weekend 馃憤

Fixed in v1.14.3

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bashery picture bashery  路  4Comments

ahan picture ahan  路  3Comments

slalbertojesus picture slalbertojesus  路  4Comments

petersephrin picture petersephrin  路  4Comments

peterbourgon picture peterbourgon  路  4Comments