diff --git a/bootstrap/app.php b/bootstrap/app.php index 28e3e7c..75f3222 100644 --- a/bootstrap/app.php +++ b/bootstrap/app.php @@ -38,6 +38,13 @@ ]); })->stop(); + $exceptions->report(function (\GuzzleHttp\Exception\ConnectException $e) { + Log::warning('Connect Exception', [ + 'message' => $e->getMessage(), + 'url' => (string) $e->getRequest()?->getUri() + ]); + })->stop(); + // We have jobs that will run into max attempts, don't write them to log $exceptions->dontReport(\Illuminate\Queue\MaxAttemptsExceededException::class); })->create();