From 881f69a25ad8ab1c38dafae43fcd2e7d511c24a1 Mon Sep 17 00:00:00 2001 From: Dane Powell Date: Fri, 30 Aug 2024 08:57:31 -0700 Subject: [PATCH] CLI-1380: Stop reporting memory exhaustion --- src/Helpers/TelemetryHelper.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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.