feat: disable gin logs

This commit is contained in:
Yanislav Igonin 2021-09-11 17:57:57 +03:00
parent 35131c4ff8
commit 6ef39c6726
2 changed files with 3 additions and 1 deletions

View File

@ -19,6 +19,7 @@ func Init() {
log.Panicln(err)
}
// TODO: take from config from env var
Pool.Config().MaxConns = 5
log.Println("database - online")

View File

@ -41,7 +41,8 @@ func main() {
instance := limiter.New(store, rate)
middleware := mgin.NewMiddleware(instance)
router := gin.Default()
router := gin.New()
router.Use(gin.Recovery())
router.SetFuncMap(template.FuncMap{
"Iterate": func(count int) []int {
var i int