Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

POST-147: added debug log statements. #2

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion go/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,10 @@ func (c Client) FetchEvents(ctx context.Context, cursors []Cursor, pageSizeHint
} else {
err = errors.Errorf("unexpected response body: %s", string(all))
}
log.WithField("event", "zeroeventhub.unexpected_response_body").WithError(err).Error()
log.WithFields(logrus.Fields{
"event": "zeroeventhub.unexpected_response_body",
"responseCode": strconv.Itoa(res.StatusCode),
}).WithError(err).Error()
return err
}
}
Expand Down
1 change: 1 addition & 0 deletions go/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ go 1.18

require (
github.com/gorilla/mux v1.8.0
github.com/pkg/errors v0.9.1
github.com/sirupsen/logrus v1.8.1
github.com/stretchr/testify v1.3.0
github.com/pkg/errors v0.9.1
Expand Down