Skip to content

Commit

Permalink
remove rollbar
Browse files Browse the repository at this point in the history
  • Loading branch information
jesseduffield committed Jan 29, 2020
1 parent c166c57 commit deaa2bc
Show file tree
Hide file tree
Showing 20 changed files with 1 addition and 1,365 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ require (
github.com/integrii/flaggy v1.4.0
github.com/jesseduffield/gocui v0.3.1-0.20200112025325-6c933915c351
github.com/jesseduffield/pty v1.2.1
github.com/jesseduffield/rollrus v0.0.0-20190701125922-dd028cb0bfd7
github.com/jesseduffield/rollrus v0.0.0-20190701125922-dd028cb0bfd7 // indirect
github.com/jesseduffield/termbox-go v0.0.0-20190630083001-9dd53af7214e // indirect
github.com/kardianos/osext v0.0.0-20190222173326-2bc1f35cddc0
github.com/konsorten/go-windows-terminal-sequences v1.0.2 // indirect
Expand Down
8 changes: 0 additions & 8 deletions pkg/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down Expand Up @@ -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)
Expand All @@ -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(),
Expand Down
1 change: 0 additions & 1 deletion vendor/github.com/jesseduffield/roll/.gitignore

This file was deleted.

24 changes: 0 additions & 24 deletions vendor/github.com/jesseduffield/roll/CHANGELOG

This file was deleted.

22 changes: 0 additions & 22 deletions vendor/github.com/jesseduffield/roll/LICENSE

This file was deleted.

53 changes: 0 additions & 53 deletions vendor/github.com/jesseduffield/roll/README.md

This file was deleted.

242 changes: 0 additions & 242 deletions vendor/github.com/jesseduffield/roll/client.go

This file was deleted.

Loading

0 comments on commit deaa2bc

Please sign in to comment.