@@ -42,7 +42,7 @@ func LogRequests(handler http.Handler) http.Handler {
ua,
)
if RollBarEnabled {
- if !RollBarSkipStatusCodes.Contain(nw.Status) {
+ if !RollBarSkipStatusCodes.contain(nw.Status) {
rollbar.Error(r, nw.Status, nw.Size, string(nw.Content))
}
@@ -14,7 +14,7 @@ var RollBarSkipStatusCodes = RollBarStatusCodes{
http.StatusMethodNotAllowed,
-func (r RollBarStatusCodes) Contain(status int) bool {
+func (r RollBarStatusCodes) contain(status int) bool {
for _, v := range r {
if v == status {
return true
@@ -11,7 +11,7 @@ type ResponseWriter struct {
func (w *ResponseWriter) Write(b []byte) (int, error) {
- if !RollBarSkipStatusCodes.Contain(w.Status) {
+ if !RollBarSkipStatusCodes.contain(w.Status) {
w.Content = append(w.Content, b...)