From 569d5ff7ed880e267a8afed44203fdad86682ff4 Mon Sep 17 00:00:00 2001 From: kandrusyak Date: Mon, 25 Sep 2023 22:08:18 +0300 Subject: [PATCH] logs fix --- main.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.go b/main.go index 8eb10cb..1975307 100644 --- a/main.go +++ b/main.go @@ -7,6 +7,7 @@ import ( "github.com/go-playground/validator/v10" "github.com/labstack/echo/v4" "github.com/labstack/echo/v4/middleware" + log2 "github.com/labstack/gommon/log" "gorm.io/driver/postgres" "gorm.io/gorm" "gorm.io/gorm/logger" @@ -60,5 +61,8 @@ func main() { e.GET("/health", handler.Health) + e.Debug = true + e.Logger.SetLevel(log2.DEBUG) + e.Logger.Fatal(e.Start(":" + config.Env.Server.Port)) }