Skip to content

Commit

Permalink
CLI-1251: Exclude memory exhaustion from bugsnag
Browse files Browse the repository at this point in the history
  • Loading branch information
danepowell committed Mar 12, 2024
1 parent 0e4cdc1 commit 7559589
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Helpers/TelemetryHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ public function initializeBugsnag(): void {
if (str_starts_with($report->getContext(), 'GET')) {
return FALSE;
}
if (str_starts_with($report->getContext(), 'Allowed memory size')) {
return FALSE;

Check warning on line 56 in src/Helpers/TelemetryHelper.php

View check run for this annotation

Codecov / codecov/patch

src/Helpers/TelemetryHelper.php#L55-L56

Added lines #L55 - L56 were not covered by tests
}
// Set user info.
$userId = $this->getUserId();
if (isset($userId)) {
Expand Down

0 comments on commit 7559589

Please sign in to comment.