diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-01-29 17:27:35 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-01-29 17:29:36 +1100 |
commit | deaa2bcb1564ab27146dc1f9164ec990b9a6dc53 (patch) | |
tree | 8b86da338f3a1c55d069b002a43679bbbf1dd95e /pkg | |
parent | c166c57c5da73f9243ac4b4bc7e38fd0b3fa0f46 (diff) |
remove rollbar
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/app/app.go | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/pkg/app/app.go b/pkg/app/app.go index b364936ae..deec4b6a3 100644 --- a/pkg/app/app.go +++ b/pkg/app/app.go @@ -14,7 +14,6 @@ import ( "github.com/jesseduffield/lazygit/pkg/gui" "github.com/jesseduffield/lazygit/pkg/i18n" "github.com/jesseduffield/lazygit/pkg/updates" - "github.com/jesseduffield/rollrus" "github.com/shibukawa/configdir" "github.com/sirupsen/logrus" ) @@ -73,9 +72,7 @@ func newDevelopmentLogger(config config.AppConfigurer) *logrus.Logger { func newLogger(config config.AppConfigurer) *logrus.Entry { var log *logrus.Logger - environment := "production" if config.GetDebug() || os.Getenv("DEBUG") == "TRUE" { - environment = "development" log = newDevelopmentLogger(config) } else { log = newProductionLogger(config) @@ -85,11 +82,6 @@ func newLogger(config config.AppConfigurer) *logrus.Entry { // https://github.com/aybabtme/humanlog log.Formatter = &logrus.JSONFormatter{} - if 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) - } return log.WithFields(logrus.Fields{ "debug": config.GetDebug(), "version": config.GetVersion(), |