Don't report 502 errors
This commit is contained in:
parent
a864f4e344
commit
71a10f8514
|
@ -119,7 +119,7 @@ private func captureError(_ error: Client.Error, title: String) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if let code = event.tags!["response_code"],
|
if let code = event.tags!["response_code"],
|
||||||
code == "401" || code == "403" || code == "404" {
|
code == "401" || code == "403" || code == "404" || code == "502" {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
SentrySDK.capture(event: event)
|
SentrySDK.capture(event: event)
|
||||||
|
|
Loading…
Reference in New Issue