From 1f3b629e9cea4d11fbf3cf29f575ba730bad898d Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Tue, 14 Jan 2025 09:19:32 +0300 Subject: [PATCH] fix(debug): Disabled `Bugsnag` reporting on local environment (#1751) --- src/Dev.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Dev.php b/src/Dev.php index 08187f428..6bb0f8325 100644 --- a/src/Dev.php +++ b/src/Dev.php @@ -51,8 +51,11 @@ class Dev $this->getWhoopsPlaceholder(); } $this->getWhoopsLogger(); - $this->getTelegramSender(); - $this->getBugsnag(); + + if (APP_ENV !== 'local') { + $this->getTelegramSender(); + $this->getBugsnag(); + } $this->whoops->register(); }