diff --git a/go.mod b/go.mod index 9092b7a3..0f1cbc75 100644 --- a/go.mod +++ b/go.mod @@ -6,6 +6,7 @@ require ( github.com/Masterminds/semver v1.5.0 github.com/go-git/go-git/v5 v5.5.2 github.com/pkg/errors v0.9.1 + github.com/rollbar/rollbar-go v1.4.5 github.com/segmentio/encoding v0.3.6 github.com/smacker/go-tree-sitter v0.0.0-20221031025734-03a9c97d8039 github.com/whilp/git-urls v1.0.0 @@ -31,7 +32,6 @@ require ( github.com/kr/pretty v0.3.0 // indirect github.com/pjbgf/sha1cd v0.2.3 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect - github.com/rollbar/rollbar-go v1.4.5 // indirect github.com/sergi/go-diff v1.1.0 // indirect github.com/skeema/knownhosts v1.1.0 // indirect github.com/xanzy/ssh-agent v0.3.3 // indirect diff --git a/pkg/server/server.go b/pkg/server/server.go index 984560df..06681aee 100644 --- a/pkg/server/server.go +++ b/pkg/server/server.go @@ -39,6 +39,7 @@ func (server JSONRPCServer) commandHandler(_ context.Context, reply jsonrpc2.Rep logErrorAndReply := func(ctx context.Context, result interface{}, err error) error { if err != nil { + fmt.Printf("error calling %s: %s\n", req.Method(), err.Error()) rollbar.Log(rollbar.ERR, err) } return reply(ctx, result, err)