In order to keep the amount of noise sent to Sentry low, typical network errors can be filtered out here by a substring match.
(err error)
| 185 | |
| 186 | // In order to keep the amount of noise sent to Sentry low, typical network errors can be filtered out here by a substring match. |
| 187 | func captureError(err error) { |
| 188 | errorMessage := err.Error() |
| 189 | for _, ignoredErrorMessage := range ignoredErrors { |
| 190 | if strings.Contains(errorMessage, ignoredErrorMessage) { |
| 191 | return |
| 192 | } |
| 193 | } |
| 194 | sentry.CaptureException(err) |
| 195 | } |
| 196 | |
| 197 | // cloudflared was started without any flags |
| 198 | func handleServiceMode(c *cli.Context, shutdownC chan struct{}) error { |