diff --git a/src/Helpers/TelemetryHelper.php b/src/Helpers/TelemetryHelper.php index 56b5845d8..e5e575a66 100644 --- a/src/Helpers/TelemetryHelper.php +++ b/src/Helpers/TelemetryHelper.php @@ -54,9 +54,9 @@ public function initializeBugsnag(): void // Exclude reports from app:from, which bootstraps Drupal. case str_starts_with($report->getContext(), 'GET'): // Exclude memory exhaustion errors. - case str_starts_with($report->getContext(), 'Allowed memory size'): + case str_starts_with($report->getMessage(), 'Allowed memory size'): // Exclude i/o errors. - case str_starts_with($report->getContext(), 'fgets'): + case str_starts_with($report->getMessage(), 'fgets'): return false; } // Set user info.