1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-08-13 20:04:25 +02:00

emergency situation: we're not logging to rollrus while we're past the request quota

This commit is contained in:
Jesse Duffield
2019-06-24 12:25:35 +10:00
parent abddea060e
commit c107eed890

View File

@@ -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)