revision = "3cfea5ab600ae37946be2b763b8ec2c1cf2d272d"
version = "v1.0.0"
+[[projects]]
+ name = "github.com/coreos/go-systemd"
+ packages = ["journal"]
+ revision = "39ca1b05acc7ad1220e09f133283b8859a8b71ab"
+ version = "v17"
+
[[projects]]
branch = "master"
name = "github.com/dchest/authcookie"
revision = "b4c50a2b199d93b13dc15e78929cfb23bfdf21ab"
version = "v1.1.1"
+[[projects]]
+ branch = "pin_dependency"
+ name = "github.com/wercker/journalhook"
+ packages = ["."]
+ revision = "35950c648b44426a2590d4e316cdd409a53363ea"
+
[[projects]]
branch = "master"
name = "golang.org/x/crypto"
[solve-meta]
analyzer-name = "dep"
analyzer-version = 1
- inputs-digest = "9df92ae3bbf81638f86228e1daacd75bd4f6d0afbfc449742e7f28fdefffdc46"
+ inputs-digest = "0bc4b06298ce7964140ac7d3e5e58915b01d6a53413af394501d5bf86683d9d7"
solver-name = "gps-cdcl"
solver-version = 1
[[constraint]]
name = "github.com/matcornic/hermes"
version = "1.1.1"
+
+[[constraint]]
+ branch = "pin_dependency"
+ name = "github.com/wercker/journalhook"
"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 {