logs fix
This commit is contained in:
4
main.go
4
main.go
@@ -7,6 +7,7 @@ import (
|
|||||||
"github.com/go-playground/validator/v10"
|
"github.com/go-playground/validator/v10"
|
||||||
"github.com/labstack/echo/v4"
|
"github.com/labstack/echo/v4"
|
||||||
"github.com/labstack/echo/v4/middleware"
|
"github.com/labstack/echo/v4/middleware"
|
||||||
|
log2 "github.com/labstack/gommon/log"
|
||||||
"gorm.io/driver/postgres"
|
"gorm.io/driver/postgres"
|
||||||
"gorm.io/gorm"
|
"gorm.io/gorm"
|
||||||
"gorm.io/gorm/logger"
|
"gorm.io/gorm/logger"
|
||||||
@@ -60,5 +61,8 @@ func main() {
|
|||||||
|
|
||||||
e.GET("/health", handler.Health)
|
e.GET("/health", handler.Health)
|
||||||
|
|
||||||
|
e.Debug = true
|
||||||
|
e.Logger.SetLevel(log2.DEBUG)
|
||||||
|
|
||||||
e.Logger.Fatal(e.Start(":" + config.Env.Server.Port))
|
e.Logger.Fatal(e.Start(":" + config.Env.Server.Port))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user