"github.com/gin-contrib/cors"
"github.com/gin-gonic/gin"
"github.com/jloup/utils"
+ "github.com/wercker/journalhook"
)
var log = utils.StandardL().WithField("module", "api")
panic(err)
}
+ journalhook.Enable()
api.SetConfig(C.Api.Config)
api.SetMailConfig(C.Mail)
engine.Use(gin.Recovery())
- if C.Mode == "production" {
+ if C.Mode == "prod" {
engine.Use(api.Logger())
apiGroup.Use(api.Logger())
} else {