Skip to content

Commit

Permalink
Merge pull request #10 from taross-f/master
Browse files Browse the repository at this point in the history
Bump to gobrake v5
  • Loading branch information
gravis authored Aug 22, 2022
2 parents d2d708f + c4cc4d5 commit cdb3c23
Show file tree
Hide file tree
Showing 5 changed files with 1,114 additions and 36 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
language: go
go:
- 1.11.x
- 1.12.x
- 1.13.x
- 1.16.x
- 1.17.x
- 1.18.x
- "tip"
install:
- mkdir -p $HOME/gopath/src/gopkg.in/gemnasium
Expand Down
2 changes: 1 addition & 1 deletion airbrake.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"net/http"
"os"

"github.com/airbrake/gobrake/v4"
"github.com/airbrake/gobrake/v5"
"github.com/sirupsen/logrus"
)

Expand Down
7 changes: 6 additions & 1 deletion airbrake_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"testing"
"time"

"github.com/airbrake/gobrake/v4"
"github.com/airbrake/gobrake/v5"
"github.com/sirupsen/logrus"
)

Expand Down Expand Up @@ -178,6 +178,11 @@ type FakeRoundTripper struct {
}

func (rt *FakeRoundTripper) RoundTrip(r *http.Request) (*http.Response, error) {
if r.Body == nil {
return &http.Response{
StatusCode: http.StatusOK,
}, nil
}
b, err := ioutil.ReadAll(r.Body)
if err != nil {
panic(err)
Expand Down
8 changes: 4 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
module gopkg.in/gemnasium/logrus-airbrake-hook.v4
module gopkg.in/gemnasium/logrus-airbrake-hook.v5

go 1.13
go 1.16

require (
github.com/airbrake/gobrake/v4 v4.0.3
github.com/sirupsen/logrus v1.4.2
github.com/airbrake/gobrake/v5 v5.5.2
github.com/sirupsen/logrus v1.8.1
)
Loading

0 comments on commit cdb3c23

Please sign in to comment.