Don't report 502 errors

This commit is contained in:
Shadowfacts 2023-02-27 10:33:50 -05:00
parent a864f4e344
commit 71a10f8514
1 changed files with 1 additions and 1 deletions

View File

@ -119,7 +119,7 @@ private func captureError(_ error: Client.Error, title: String) {
return
}
if let code = event.tags!["response_code"],
code == "401" || code == "403" || code == "404" {
code == "401" || code == "403" || code == "404" || code == "502" {
return
}
SentrySDK.capture(event: event)