fix: add default log level
Some checks failed
Release / Generate changelog (push) Failing after -16s
Some checks failed
Release / Generate changelog (push) Failing after -16s
This commit is contained in:
parent
8d320f96cd
commit
64efaf5514
@ -2,6 +2,7 @@ package http
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/gofiber/fiber/v2"
|
"github.com/gofiber/fiber/v2"
|
||||||
|
"github.com/gofiber/fiber/v2/log"
|
||||||
"github.com/gofiber/fiber/v2/middleware/logger"
|
"github.com/gofiber/fiber/v2/middleware/logger"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -12,6 +13,7 @@ func StartService() {
|
|||||||
app.Use(logger.New(logger.Config{
|
app.Use(logger.New(logger.Config{
|
||||||
Format: "[${ip}]:${port} ${status} - ${method} ${path}\n",
|
Format: "[${ip}]:${port} ${status} - ${method} ${path}\n",
|
||||||
}))
|
}))
|
||||||
|
log.SetLevel(log.LevelInfo)
|
||||||
|
|
||||||
// Configure Routes
|
// Configure Routes
|
||||||
app = configureRoutes(app)
|
app = configureRoutes(app)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user