Browse Source

Review RollBar errors for skipping

Volodymyr Tkach 2 years ago
parent
commit
1726a74750
1 changed files with 28 additions and 6 deletions
  1. 28 6
      utils/http/logger/rollbar.go

+ 28 - 6
utils/http/logger/rollbar.go

@@ -10,12 +10,34 @@ var RollBarEnabled = false
 type RollBarStatusCodes []int
 type RollBarStatusCodes []int
 
 
 var RollBarSkipStatusCodes = RollBarStatusCodes{
 var RollBarSkipStatusCodes = RollBarStatusCodes{
-	http.StatusForbidden,
-	http.StatusMethodNotAllowed,
-	http.StatusNotFound,
-	http.StatusNotModified,
-	http.StatusOK,
-	http.StatusTemporaryRedirect,
+	http.StatusContinue,           // 100
+	http.StatusSwitchingProtocols, // 101
+	http.StatusProcessing,         // 102
+	http.StatusEarlyHints,         // 103
+
+	http.StatusOK,                   // 200
+	http.StatusCreated,              // 201
+	http.StatusAccepted,             // 202
+	http.StatusNonAuthoritativeInfo, // 203
+	http.StatusNoContent,            // 204
+	http.StatusResetContent,         // 205
+	http.StatusPartialContent,       // 206
+	http.StatusMultiStatus,          // 207
+	http.StatusAlreadyReported,      // 208
+	http.StatusIMUsed,               // 226
+
+	http.StatusMultipleChoices,   // 300
+	http.StatusMovedPermanently,  // 301
+	http.StatusFound,             // 302
+	http.StatusSeeOther,          // 303
+	http.StatusNotModified,       // 304
+	http.StatusUseProxy,          // 305
+	http.StatusTemporaryRedirect, // 307
+	http.StatusPermanentRedirect, // 308
+
+	http.StatusForbidden,        // 403
+	http.StatusNotFound,         // 404
+	http.StatusMethodNotAllowed, // 405
 }
 }
 
 
 func (r RollBarStatusCodes) contain(status int) bool {
 func (r RollBarStatusCodes) contain(status int) bool {