Skip to content

Commit

Permalink
CLI-1380: Stop reporting memory exhaustion (#1785)
Browse files Browse the repository at this point in the history
  • Loading branch information
danepowell authored Aug 30, 2024
1 parent a700f92 commit 5451922
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Helpers/TelemetryHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 5451922

Please sign in to comment.