Browse Source

Skip http.StatusForbidden

Volodymyr Tkach 2 years ago
parent
commit
984a1c9204
1 changed files with 4 additions and 3 deletions
  1. 4 3
      utils/http/logger/rollbar.go

+ 4 - 3
utils/http/logger/rollbar.go

@@ -10,11 +10,12 @@ var RollBarEnabled = false
 type RollBarStatusCodes []int
 type RollBarStatusCodes []int
 
 
 var RollBarSkipStatusCodes = RollBarStatusCodes{
 var RollBarSkipStatusCodes = RollBarStatusCodes{
-	http.StatusOK,
+	http.StatusForbidden,
+	http.StatusMethodNotAllowed,
+	http.StatusNotFound,
 	http.StatusNotModified,
 	http.StatusNotModified,
+	http.StatusOK,
 	http.StatusTemporaryRedirect,
 	http.StatusTemporaryRedirect,
-	http.StatusNotFound,
-	http.StatusMethodNotAllowed,
 }
 }
 
 
 func (r RollBarStatusCodes) contain(status int) bool {
 func (r RollBarStatusCodes) contain(status int) bool {