aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBobby <[email protected]>2025-04-06 12:03:49 +0530
committerBobby <[email protected]>2025-04-06 12:03:49 +0530
commit72ebe2b53ff317cefc2a394110cabd9ee187287e (patch)
treeb2326ee5625e024ee2a9fcfad7ba0049b06f1955
parenta6f98ee466f75ff012228d2027ad9e246bebcfb6 (diff)
downloadmetachan-72ebe2b53ff317cefc2a394110cabd9ee187287e.tar.xz
metachan-72ebe2b53ff317cefc2a394110cabd9ee187287e.zip
use custom HTTP logging middleware
-rw-r--r--metachan/main.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/metachan/main.go b/metachan/main.go
index 63fa2fb..d0fb826 100644
--- a/metachan/main.go
+++ b/metachan/main.go
@@ -4,6 +4,7 @@ import (
"fmt"
"metachan/config"
"metachan/database"
+ "metachan/middleware"
"metachan/router"
"metachan/tasks"
"metachan/types"
@@ -12,7 +13,6 @@ import (
"github.com/gofiber/fiber/v2"
"github.com/gofiber/fiber/v2/middleware/cors"
"github.com/gofiber/fiber/v2/middleware/helmet"
- fiberLogger "github.com/gofiber/fiber/v2/middleware/logger"
)
func main() {
@@ -29,7 +29,7 @@ func main() {
MaxAge: 86400,
}))
app.Use(helmet.New())
- app.Use(fiberLogger.New())
+ app.Use(middleware.HTTPLogger())
// Initialize the router
router.Initialize(app)