MCPcopy Index your code
hub / github.com/cloudflare/cloudflared / captureError

Function captureError

cmd/cloudflared/main.go:187–195  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.
187func 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
198func handleServiceMode(c *cli.Context, shutdownC chan struct{}) error {

Callers 1

actionFunction · 0.85

Calls 1

ErrorMethod · 0.45

Tested by

no test coverage detected