update: remove fiber's log module
This commit is contained in:
13
main.go
13
main.go
@ -1,7 +1,7 @@
|
||||
/*
|
||||
|
||||
* website | MatterLinux Official Website
|
||||
* MatterLinux 2023-2024 (https://matterlinux.xyz)
|
||||
* website | MatterLinux Official Website
|
||||
* MatterLinux 2023-2024 (https://matterlinux.xyz)
|
||||
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@ -16,19 +16,22 @@
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
*/
|
||||
*/
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
"log"
|
||||
|
||||
"git.matterlinux.xyz/Matter/website/lib"
|
||||
"git.matterlinux.xyz/Matter/website/routes"
|
||||
"github.com/gofiber/fiber/v2"
|
||||
"github.com/gofiber/fiber/v2/log"
|
||||
"github.com/gofiber/template/html/v2"
|
||||
)
|
||||
|
||||
func main(){
|
||||
log.SetFlags(log.Lshortfile | log.Ltime)
|
||||
|
||||
engine := html.New("./templates", ".html")
|
||||
app := fiber.New(fiber.Config{
|
||||
DisableStartupMessage: true,
|
||||
@ -50,7 +53,7 @@ func main(){
|
||||
return lib.RenderError(c, 404)
|
||||
})
|
||||
|
||||
log.Info("Starting MatterLinux Website on port 9878")
|
||||
log.Println("Starting MatterLinux Website on port 9878")
|
||||
err := app.Listen(":9878")
|
||||
if err != nil {
|
||||
log.Fatalf("Error starting server: %s", err)
|
||||
|
Reference in New Issue
Block a user