Skip to content

Commit

Permalink
update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
paulolimarb committed Nov 18, 2019
1 parent 8f8cc47 commit 6dc731b
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
1 change: 0 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,4 @@ require (
github.com/modern-go/reflect2 v1.0.1
github.com/mralves/tracer v1.7.3
github.com/stretchr/testify v1.4.0
github.com/v2pro/plz v0.0.0-20180227161703-2d49b86ea382 // indirect
)
9 changes: 9 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,37 @@ github.com/Masterminds/glide v0.13.2/go.mod h1:STyF5vcenH/rUqTEv+/hBXlSTo7KYwg2o
github.com/Masterminds/semver v1.4.2/go.mod h1:MB6lktGJrhw8PrUyiEoblNEGEQ+RzHPF078ddwwvV3Y=
github.com/Masterminds/vcs v1.13.0/go.mod h1:N09YCmOQr6RLxC6UNHzuVwAdodYbbnycGHSmwVJjcKA=
github.com/codegangsta/cli v1.20.0/go.mod h1:/qJNoX69yVSKu5o4jLyXAENLRyk1uhi7zkbQ3slBdOA=
github.com/corpix/uarand v0.0.0/go.mod h1:JSm890tOkDN+M1jqN8pUGDKnzJrsVbJwSMHBY4zwz7M=
github.com/corpix/uarand v0.1.1 h1:RMr1TWc9F4n5jiPDzFHtmaUXLKLNUFK0SgCLo4BhX/U=
github.com/corpix/uarand v0.1.1/go.mod h1:SFKZvkcRoLqVRFZ4u25xPmp6m9ktANfbpXZ7SJ0/FNU=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg=
github.com/iancoleman/strcase v0.0.0-20180726023541-3605ed457bf7/go.mod h1:SK73tn/9oHe+/Y0h39VT4UCxmurVJkR5NA7kMEAOgSE=
github.com/iancoleman/strcase v0.0.0-20191112232945-16388991a334 h1:VHgatEHNcBFEB7inlalqfNqw65aNkM1lGX2yt3NmbS8=
github.com/iancoleman/strcase v0.0.0-20191112232945-16388991a334/go.mod h1:SK73tn/9oHe+/Y0h39VT4UCxmurVJkR5NA7kMEAOgSE=
github.com/icrowley/fake v0.0.0-20180203215853-4178557ae428 h1:Mo9W14pwbO9VfRe+ygqZ8dFbPpoIK1HFrG/zjTuQ+nc=
github.com/icrowley/fake v0.0.0-20180203215853-4178557ae428/go.mod h1:uhpZMVGznybq1itEKXj6RYw9I71qK4kH+OGMjRC4KEo=
github.com/jarcoal/httpmock v1.0.3/go.mod h1:ATjnClrvW/3tijVmpL/va5Z3aAyGvqU3gCT8nX0Txik=
github.com/jarcoal/httpmock v1.0.4 h1:jp+dy/+nonJE4g4xbVtl9QdrUNbn6/3hDT5R4nDIZnA=
github.com/jarcoal/httpmock v1.0.4/go.mod h1:ATjnClrvW/3tijVmpL/va5Z3aAyGvqU3gCT8nX0Txik=
github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU=
github.com/json-iterator/go v1.1.8 h1:QiWkFLKq0T7mpzwOTu6BzNDbfTE8OLrYhVKYMLF46Ok=
github.com/json-iterator/go v1.1.8/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4=
github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0=
github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421 h1:ZqeYNhU3OHLH3mGKHDcjJRFFRrJa6eAM5H+CtDdOsPc=
github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg=
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0=
github.com/modern-go/reflect2 v1.0.1 h1:9f412s+6RmYXLWZSEzVVgPGK7C2PphHj5RJrvfx9AWI=
github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0=
github.com/mralves/tracer v1.7.3 h1:XFdPXX85HMidTmyzBUFdGBlLmFpRaazoaAEqmeBHYTE=
github.com/mralves/tracer v1.7.3/go.mod h1:PV/IuPDoIH4gY/vKi9Iev72t0CoVlwjErQ5DyWhH2TI=
github.com/mundipagg/tracer-seq-writer v1.1.9 h1:jnUo+hYK+Ra9cVQsSFaOFX/w6PnQPxDl3oG+yTlye2I=
github.com/mundipagg/tracer-seq-writer v1.1.9/go.mod h1:rtO9Po02B572vH8E6xXrMjUQI0w/kowdLng6kAGQZdE=
github.com/mundipagg/tracer-splunk-writer v1.0.1/go.mod h1:TDroeuEZ7ts2Y8b1VSsaWtTh4NuK1kS4WW+UlEBWsx8=
github.com/ngdinhtoan/glide-cleanup v0.2.0/go.mod h1:UQzsmiDOb8YV3nOsCxK/c9zPpCZVNoHScRE3EO9pVMM=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
Expand Down
2 changes: 1 addition & 1 deletion splunk.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func (sw *Writer) Write(entry tracer.Entry) {
go func(sw *Writer, entry tracer.Entry) {
defer func() {
if err := recover(); err != nil {
stderr("COULD NOT SEND SPLUNK TO SEQ BECAUSE %v", err)
stderr("COULD NOT SEND SPLUNK TO SPLUNK BECAUSE %v", err)
}
}()
if entry.Level > sw.minimumLevel {
Expand Down
6 changes: 3 additions & 3 deletions splunk_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ func TestWriter_Send(t *testing.T) {
url := "http://log.io/" + fake.Password(8, 8, false, false, false)
httpmock.RegisterResponder("POST", url, func(request *http.Request) (response *http.Response, err error) {
is.Equal(http.Header{
"X-Seq-Apikey": []string{"key"},
"Splunk": []string{"key"},
"Content-Type": []string{"application/json"},
}, request.Header, "it should return the expected header")
return nil, errors.New("failed")
Expand Down Expand Up @@ -177,7 +177,7 @@ func TestWriter_Send(t *testing.T) {
url := "http://log.io/" + fake.Password(8, 8, false, false, false)
httpmock.RegisterResponder("POST", url, func(request *http.Request) (response *http.Response, err error) {
is.Equal(http.Header{
"X-Seq-Apikey": []string{"key"},
"Splunk": []string{"key"},
"Content-Type": []string{"application/json"},
}, request.Header, "it should return the expected header")
return httpmock.NewBytesResponse(502, nil), nil
Expand Down Expand Up @@ -205,7 +205,7 @@ func TestWriter_Send(t *testing.T) {
url := "http://log.io/" + fake.Password(8, 8, false, false, false)
httpmock.RegisterResponder("POST", url, func(request *http.Request) (response *http.Response, err error) {
is.Equal(http.Header{
"X-Seq-Apikey": []string{"key"},
"Splunk": []string{"key"},
"Content-Type": []string{"application/json"},
}, request.Header, "it should return the expected header")
return httpmock.NewBytesResponse(201, nil), nil
Expand Down

0 comments on commit 6dc731b

Please sign in to comment.