Skip to content

Commit 49a36b9

Browse files
committed
reduce connection error log explicitness
1 parent b8dcd2c commit 49a36b9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

bootstrap/app.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,13 @@
3838
]);
3939
})->stop();
4040

41+
$exceptions->report(function (\GuzzleHttp\Exception\ConnectException $e) {
42+
Log::warning('Connect Exception', [
43+
'message' => $e->getMessage(),
44+
'url' => (string) $e->getRequest()?->getUri()
45+
]);
46+
})->stop();
47+
4148
// We have jobs that will run into max attempts, don't write them to log
4249
$exceptions->dontReport(\Illuminate\Queue\MaxAttemptsExceededException::class);
4350
})->create();

0 commit comments

Comments
 (0)