From bda9ffae4ceb44f6832be00626578911be4e7e1a Mon Sep 17 00:00:00 2001 From: Dane Powell Date: Tue, 12 Mar 2024 12:17:29 -0700 Subject: [PATCH] CLI-1251: Exclude memory exhaustion from bugsnag (#1700) --- src/Helpers/TelemetryHelper.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Helpers/TelemetryHelper.php b/src/Helpers/TelemetryHelper.php index c2777799b..783430bce 100644 --- a/src/Helpers/TelemetryHelper.php +++ b/src/Helpers/TelemetryHelper.php @@ -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; + } // Set user info. $userId = $this->getUserId(); if (isset($userId)) {