1
0
rngpotd/fiber_debug.go
Konstantin Demin a9f9014edd
Some checks failed
ci/woodpecker/push/build Pipeline failed
ci/woodpecker/manual/build Pipeline was successful
ci/woodpecker/manual/latest Pipeline failed
initial commit
2024-07-19 16:52:06 +03:00

21 lines
333 B
Go

//go:build !rngpot_nodebug
package main
import (
"time"
"github.com/gofiber/fiber/v2"
"github.com/gofiber/fiber/v2/middleware/logger"
)
func preinitFiberConfig() {
fiberConfig.EnablePrintRoutes = true
}
func preinitFiberApp(app *fiber.App) {
app.Use(logger.New(logger.Config{
TimeInterval: 100 * time.Millisecond,
}))
}