From 545192289e80aa516fac718b190dbb7a5183472c Mon Sep 17 00:00:00 2001 From: Dane Powell Date: Fri, 30 Aug 2024 09:10:45 -0700 Subject: [PATCH] CLI-1380: Stop reporting memory exhaustion (#1785) --- 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.