Error Reporting: Log instead of dump (#15412)

* Error Reporting: Log instead of dump
When dumping all errors, log them instead so it doesn't break the webui and we can get reports more reliably

* Apply fixes from StyleCI

---------

Co-authored-by: StyleCI Bot <bot@styleci.io>
This commit is contained in:
Tony Murray
2023-10-07 20:04:21 -05:00
committed by GitHub
parent 5386b24888
commit 8dbf95bb40

View File

@@ -65,7 +65,7 @@ class ErrorReportingProvider extends \Spatie\LaravelIgnition\IgnitionServiceProv
Flare::filterExceptionsUsing(function (\Exception $e) {
if (Config::get('reporting.dump_errors')) {
dump('Exception: ' . $e->getMessage(), $e->getFile() . ':' . $e->getLine());
\Log::critical('%RException: ' . $e->getMessage() . '%n @ %G' . $e->getFile() . ':' . $e->getLine() . '%n', ['color' => true]);
}
// check if reporting is enabled and not throttled