mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Print stack trace in error dumps (#15514)
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user