diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2019-06-24 12:25:35 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2019-06-24 12:29:44 +1000 |
commit | c107eed8902ac5dbdae66988fc0e2d464be62749 (patch) | |
tree | 275a05294863b4753980079e3bc4801eeb6f3c47 /pkg/app | |
parent | abddea060e27902f146dfedc5d3b77426bbe4a31 (diff) |
emergency situation: we're not logging to rollrus while we're past the request quota
Diffstat (limited to 'pkg/app')
-rw-r--r-- | pkg/app/app.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pkg/app/app.go b/pkg/app/app.go index fc75a6608..6d5ef8e58 100644 --- a/pkg/app/app.go +++ b/pkg/app/app.go @@ -19,6 +19,9 @@ import ( "github.com/sirupsen/logrus" ) +// we hit the limit: putting this here for now +const HaveNotHitRollbarLimit = false + // App struct type App struct { closers []io.Closer @@ -80,7 +83,7 @@ func newLogger(config config.AppConfigurer) *logrus.Entry { // https://github.com/aybabtme/humanlog log.Formatter = &logrus.JSONFormatter{} - if config.GetUserConfig().GetString("reporting") == "on" { + if HaveNotHitRollbarLimit && config.GetUserConfig().GetString("reporting") == "on" { // this isn't really a secret token: it only has permission to push new rollbar items hook := rollrus.NewHook("23432119147a4367abf7c0de2aa99a2d", environment) log.Hooks.Add(hook) |