From 5327c4f13b8bab26cfbdae9dcdbbd5a8ec5348fe Mon Sep 17 00:00:00 2001 From: Owen Melbourne Date: Tue, 9 Feb 2021 10:47:29 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=95=B5=EF=B8=8F=E2=80=8D=E2=99=82?= =?UTF-8?q?=EF=B8=8F=20Debugging?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Crawler/CrawlObserver.php | 7 ++----- config/odin.php | 1 - 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/app/Crawler/CrawlObserver.php b/app/Crawler/CrawlObserver.php index df5d8c8..e576bc1 100644 --- a/app/Crawler/CrawlObserver.php +++ b/app/Crawler/CrawlObserver.php @@ -9,7 +9,6 @@ use Psr\Http\Message\UriInterface; use Psr\Http\Message\ResponseInterface; use GuzzleHttp\Exception\RequestException; -use App\Notifications\BrowserMessageDetected; use Spatie\Crawler\CrawlObserver as SpatieCrawlObserver; class CrawlObserver extends SpatieCrawlObserver @@ -92,15 +91,13 @@ public function crawlFailed(UriInterface $url, RequestException $requestExceptio $page->response = null; $page->exception = $requestException->getCode() . ' - ' . $requestException->getMessage(); - $this->notify($page); + BrowserConsoleCheck::dispatch($this->website, $page); return $page->save(); } private function notify(CrawledPage $page) { - $page->website->user->notify( - new BrowserMessageDetected($page->website, $page) - ); +// dump($page->exception); } } diff --git a/config/odin.php b/config/odin.php index 9a27ae4..c290add 100644 --- a/config/odin.php +++ b/config/odin.php @@ -3,6 +3,5 @@ return [ 'ignore_console_errors' => [ 'app/Crawler/browser.js', - 'ssl.responsetap.com', ], ];