Log full stacktrace
This commit is contained in:
parent
af45eaa09a
commit
8f9068ad84
1 changed files with 2 additions and 1 deletions
|
|
@ -65,7 +65,8 @@ class Handler extends ExceptionHandler
|
|||
|
||||
if (Utils::isNinja() && ! Utils::isTravis()) {
|
||||
Utils::logError(Utils::getErrorString($e));
|
||||
file_put_contents(storage(), $e->getTraceAsString(), FILE_APPEND);
|
||||
$stacktrace = date('Y-m-d h:i:s') . ' ' . $e->getTraceAsString();
|
||||
@file_put_contents(storage_path('logs/stacktrace.log'), $stacktrace, FILE_APPEND);
|
||||
return false;
|
||||
} else {
|
||||
return parent::report($e);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue