Fix collab filtering panics better (#18344)

Release Notes:

- N/A
This commit is contained in:
Conrad Irwin 2024-09-25 09:42:07 -06:00 committed by GitHub
parent 500c3c54a6
commit bbf5ed2ba1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -364,21 +364,19 @@ pub async fn post_panic(
}
fn report_to_slack(panic: &Panic) -> bool {
if panic.os_name == "Linux" {
if panic.payload.contains("ERROR_SURFACE_LOST_KHR") {
return false;
}
if panic.payload.contains("ERROR_SURFACE_LOST_KHR") {
return false;
}
if panic.payload.contains("ERROR_INITIALIZATION_FAILED") {
return false;
}
if panic.payload.contains("ERROR_INITIALIZATION_FAILED") {
return false;
}
if panic
.payload
.contains("GPU has crashed, and no debug information is available")
{
return false;
}
if panic
.payload
.contains("GPU has crashed, and no debug information is available")
{
return false;
}
true