From fe5425ca502e5136ae2269a0a767a1dc538c9a30 Mon Sep 17 00:00:00 2001 From: Marcus Noble Date: Sun, 5 Dec 2021 13:33:22 +0000 Subject: [PATCH] Added request logging Signed-off-by: Marcus Noble --- main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.go b/main.go index 1ba28e3..2017e08 100644 --- a/main.go +++ b/main.go @@ -6,6 +6,7 @@ import ( "strings" "github.com/gofiber/fiber/v2" + "github.com/gofiber/fiber/v2/middleware/logger" "maunium.net/go/mautrix" "maunium.net/go/mautrix/id" ) @@ -51,6 +52,7 @@ func init() { func main() { app := fiber.New() + app.Use(logger.New()) app.Post("/", HandlePayloadPost) app.Post("/alertmanager", HandleAlertmanagerPayloadPost) app.Listen(fmt.Sprintf(":%s", port))