update: remove fiber's log module
This commit is contained in:
@ -1,15 +1,16 @@
|
||||
package routes
|
||||
|
||||
import (
|
||||
"log"
|
||||
|
||||
"git.matterlinux.xyz/Matter/website/lib"
|
||||
"github.com/gofiber/fiber/v2"
|
||||
"github.com/gofiber/fiber/v2/log"
|
||||
)
|
||||
|
||||
func IndexRoute(c *fiber.Ctx) error{
|
||||
con, err := lib.GetContent("", "index")
|
||||
if err != nil {
|
||||
log.Error("GetContent -> ", err)
|
||||
log.Printf("GetContent failed: %s", err.Error())
|
||||
return lib.RenderError(c, 500)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user