From deaa2bcb1564ab27146dc1f9164ec990b9a6dc53 Mon Sep 17 00:00:00 2001 From: Jesse Duffield Date: Wed, 29 Jan 2020 17:27:35 +1100 Subject: remove rollbar --- pkg/app/app.go | 8 -------- 1 file changed, 8 deletions(-) (limited to 'pkg/app') 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(), -- cgit v1.2.3