Print stack trace in error dumps (#15514)

This commit is contained in:
Tony Murray
2023-10-28 16:34:56 -05:00
committed by GitHub
parent 30c95b7a76
commit f5b21047a1

View File

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